kolla-ansible/ansible/roles/vitrage/templates/vitrage-graph.json.j2
Kien Nguyen f77c67fa0e [Vitrage] Add Prometheus datasource configuration
Vitrage supports new Prometheus configuration now [1].
Kolla should allow user to configure this configuration
file.

[1] https://review.openstack.org/#/c/630514/

Change-Id: I84072d90b0342c6d460ee733ba646a5fb787faa9
2019-02-19 10:31:11 +00:00

31 lines
1020 B
Django/Jinja

{
"command": "vitrage-graph --config-file /etc/vitrage/vitrage.conf",
"config_files": [
{
"source": "{{ container_config_directory }}/vitrage.conf",
"dest": "/etc/vitrage/vitrage.conf",
"owner": "vitrage",
"perm": "0644"
}{% if enable_vitrage_prometheus_datasource | bool %},
{
"source": "{{ container_config_directory }}/prometheus_conf.yaml",
"dest": "/etc/vitrage/prometheus_conf.yaml",
"owner": "vitrage",
"perm": "0644"
}{% endif %}{% if vitrage_policy_file is defined %},
{
"source": "{{ container_config_directory }}/{{ vitrage_policy_file }}",
"dest": "/etc/vitrage/{{ vitrage_policy_file }}",
"owner": "vitrage",
"perm": "0600"
}{% endif %}
],
"permissions": [
{
"path": "/var/log/kolla/vitrage",
"owner": "vitrage:vitrage",
"recurse": true
}
]
}