1
0
Fork 0
mirror of synced 2024-12-22 06:31:06 -05:00

database setup

This commit is contained in:
Ales Komarek 2015-12-08 10:43:59 +01:00
parent 83b58af7d4
commit 9858822f85
3 changed files with 24 additions and 35 deletions

View file

@ -8,42 +8,25 @@ A beautiful, easy to use and feature rich Graphite dashboard replacement and gra
Sample pillar
=============
grafana:
server:
enabled: true
source:
type: 'git'
address: https://github.com/torkelo/grafana.git
rev: master
elasticsearch:
host: localhost
port: 9200
data:
- name: metrics1
type: graphite
host: metrics1.domain.com
ssl: true
port: 443
user: test
Sample pillar with source from stable package
Sample pillar with source from system package
grafana:
server:
enabled: true
source:
type: 'pkg'
rev: 1.4.0
elasticsearch:
version: 2.5.0
database:
engine: postgresql
host: localhost
port: 9200
data:
- name: metrics1
type: graphite
host: metrics1.domain.com
ssl: true
port: 443
user: test
port: 5432
data_source:
metrics1:
engine: graphite
host: metrics1.domain.com
ssl: true
port: 443
user: test
Read more
=========

View file

@ -54,11 +54,11 @@ http_port = {{ server.bind.port }}
#################################### Database ####################################
[database]
# Either "mysql", "postgres" or "sqlite3", it's your choice
;type = sqlite3
;host = 127.0.0.1:3306
;name = grafana
;user = root
;password =
type = {% if server.database.engine == "postgresql" %}postgres{% else %}{{ server.database.engine }}{% endif %}
host = {{ server.database.host }}:{{ server.database.port }}
name = {{ server.database.name }}
user = {{ server.database.user }}
password = {{ server.database.password }}
# For "postgres" only, either "disable", "require" or "verify-full"
;ssl_mode = disable

View file

@ -3,4 +3,10 @@ applications:
parameters:
grafana:
server:
enabled: true
enabled: true
database:
engine: postgresql
host: 127.0.0.1
name: grafana
password: ${_param:postgresql_grafana_password}
user: grafana