Fix the wrong setting for Grafana session

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
This commit is contained in:
Jeffrey Zhang 2016-10-10 19:47:32 +08:00
parent 5a427a941f
commit 0c15da00c8

View File

@ -23,8 +23,8 @@ password = {{ grafana_database_password }}
ssl_mode = disable
[session]
provider = memcache
provider_config = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
provider = mysql
provider_config = grafana:{{ grafana_database_password }}@tcp({{ grafana_database_address }}/grafana
cookie_name = grafana_sess
cookie_secure = false