1d249ca966
Previous change[1] of config for grafana introduced new bugs. [1]https://review.openstack.org/#/c/548291/ Change-Id: Ib62f0670003612073ff08f702febe81c753b72e5
46 lines
1.5 KiB
Django/Jinja
46 lines
1.5 KiB
Django/Jinja
{
|
|
"command": "/usr/sbin/grafana-server --config=/etc/grafana/grafana.ini",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/grafana.ini",
|
|
"dest": "/etc/grafana/grafana.ini",
|
|
"owner": "grafana",
|
|
"perm": "0600"
|
|
},
|
|
{% if check_extra_conf_grafana is defined %}{% if check_extra_conf_grafana.matched > 0 %}{% for plugin in check_extra_conf_grafana.files %}
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ plugin.path | basename }}",
|
|
"dest": "/etc/grafana/{{ plugin.path | basename }}",
|
|
"owner": "grafana",
|
|
"perm": "0600"
|
|
},
|
|
{% endfor %}{% endif %}{% endif %}
|
|
{
|
|
"source": "{{ container_config_directory }}/grafana_home_dashboard.json",
|
|
"dest": "/usr/share/grafana/public/dashboards/home.json",
|
|
"owner": "root",
|
|
"perm": "0644",
|
|
"optional": true
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/prometheus.yaml",
|
|
"dest": "/etc/grafana/provisioning/datasources/prometheus.yaml",
|
|
"owner": "root",
|
|
"perm": "0644",
|
|
"optional": true
|
|
}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/lib/grafana",
|
|
"owner": "grafana:grafana",
|
|
"recurse": true
|
|
},
|
|
{
|
|
"path": "/var/log/kolla/grafana",
|
|
"owner": "grafana:grafana",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|