Configure prometheus-openstack-exporter to use internal endpoints

Change-Id: Ia134a518b63bb59cfad631cc488181f5245160e6
This commit is contained in:
Pierre Riteau 2020-07-21 09:38:49 +02:00
parent 376988125a
commit cf97aeeb83
3 changed files with 15 additions and 1 deletions

View File

@ -1024,6 +1024,7 @@ prometheus_openstack_exporter_interval: "60s"
prometheus_elasticsearch_exporter_interval: "60s"
prometheus_cmdline_extras:
prometheus_ceph_mgr_exporter_endpoints: []
prometheus_openstack_exporter_endpoint_type: "internal"
############
# Vitrage

View File

@ -1,5 +1,5 @@
{
"command": "/opt/openstack-exporter/openstack-exporter --os-client-config=/etc/openstack/clouds.yml --web.listen-address={{ api_interface_address | put_address_in_context('url') }}:{{ prometheus_openstack_exporter_port }} default",
"command": "/opt/openstack-exporter/openstack-exporter --endpoint-type={{ prometheus_openstack_exporter_endpoint_type }} --os-client-config=/etc/openstack/clouds.yml --web.listen-address={{ api_interface_address | put_address_in_context('url') }}:{{ prometheus_openstack_exporter_port }} default",
"config_files": [
{
"source": "{{ container_config_directory }}/clouds.yml",

View File

@ -0,0 +1,13 @@
---
upgrade:
- |
The Prometheus OpenStack exporter now uses internal endpoints to
communicate with OpenStack services, to match the configuration of other
services deployed by Kolla Ansible. Using public endpoints can be retained
by setting the ``prometheus_openstack_exporter_endpoint_type`` variable to
``public``.
fixes:
- |
The Prometheus OpenStack exporter now uses internal endpoints to
communicate with OpenStack services, to match the configuration of other
services deployed by Kolla Ansible.