6c64b7c732
This patch implements the initial support for the openstack-exporter[0] in the kolla-ansible prometheus monitoring system. The configuration and prechecks are reused from the other exporters and a new template is provided for generating a os-client-config file required by the exporter. The default scrape interval is 60 seconds, but it can be extended via a configuration option. [0] https://github.com/Linaro/openstack-exporter Change-Id: I4a34c4bb56e74b5cd544972cbd6540d9acb6e4a1
24 lines
721 B
Django/Jinja
24 lines
721 B
Django/Jinja
{
|
|
"command": "/opt/openstack-exporter/openstack-exporter --os-client-config=/etc/openstack/clouds.yml --web.listen-address={{ api_interface_address }}:{{ prometheus_openstack_exporter_port }} default",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/clouds.yml",
|
|
"dest": "/etc/openstack/clouds.yml",
|
|
"owner": "prometheus",
|
|
"perm": "0600"
|
|
}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/data",
|
|
"owner": "prometheus:kolla",
|
|
"recurse": true
|
|
},
|
|
{
|
|
"path": "/var/log/kolla/prometheus",
|
|
"owner": "prometheus:kolla",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|