kolla-ansible/ansible/roles/grafana/templates/grafana.json.j2
guochao 08753b404e Support customizing grafana home dashboard
Replace grafana home dashboard with file in node_custom_config folder.

Change-Id: I00e3963ee287c526935e34169b63b1a40e6b4025
2017-07-24 13:11:31 +08:00

31 lines
860 B
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"
},
{
"source": "{{ container_config_directory }}/grafana_home_dashboard.json",
"dest": "/usr/share/grafana/public/dashboards/home.json",
"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
}
]
}