database setup
This commit is contained in:
parent
83b58af7d4
commit
9858822f85
3 changed files with 24 additions and 35 deletions
33
README.rst
33
README.rst
|
@ -8,38 +8,21 @@ 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
|
||||
port: 5432
|
||||
data_source:
|
||||
metrics1:
|
||||
engine: graphite
|
||||
host: metrics1.domain.com
|
||||
ssl: true
|
||||
port: 443
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -4,3 +4,9 @@ parameters:
|
|||
grafana:
|
||||
server:
|
||||
enabled: true
|
||||
database:
|
||||
engine: postgresql
|
||||
host: 127.0.0.1
|
||||
name: grafana
|
||||
password: ${_param:postgresql_grafana_password}
|
||||
user: grafana
|
Loading…
Reference in a new issue