0c15da00c8
The provider_config is configured wrong. And Grafana only supports one Memcached instance for session, which is bad for high available. Use mysql to provider the session storage. TrivialFix Change-Id: I889a961d7f36f44701654fbac04b4bff05043506
40 lines
847 B
Django/Jinja
40 lines
847 B
Django/Jinja
[paths]
|
|
data = /var/lib/grafana
|
|
logs = /var/log/kolla/grafana
|
|
plugins = /var/lib/grafana/plugins
|
|
|
|
[server]
|
|
protocol = http
|
|
http_addr = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
|
|
http_port = 3000
|
|
|
|
router_logging = true
|
|
|
|
static_root_path = public
|
|
|
|
enable_gzip = false
|
|
|
|
[database]
|
|
type = mysql
|
|
host = {{ grafana_database_address }}
|
|
name = {{ grafana_database_name }}
|
|
user = {{ grafana_database_user }}
|
|
password = {{ grafana_database_password }}
|
|
ssl_mode = disable
|
|
|
|
[session]
|
|
provider = mysql
|
|
provider_config = grafana:{{ grafana_database_password }}@tcp({{ grafana_database_address }}/grafana
|
|
|
|
cookie_name = grafana_sess
|
|
cookie_secure = false
|
|
session_life_time = 86400
|
|
|
|
[analytics]
|
|
reporting_enabled = false
|
|
check_for_updates = false
|
|
|
|
[security]
|
|
admin_user = admin
|
|
admin_password = {{ grafana_admin_password }}
|