Merge "Allow exposing OpenStack exporter via HAProxy"

This commit is contained in:
Zuul 2022-09-07 09:10:14 +00:00 committed by Gerrit Code Review
commit 0411ff3bb4
3 changed files with 17 additions and 0 deletions
ansible
group_vars
roles/prometheus/defaults
releasenotes/notes

@ -1131,6 +1131,7 @@ enable_prometheus_alertmanager: "{{ enable_prometheus | bool }}"
enable_prometheus_alertmanager_external: "{{ enable_prometheus_alertmanager | bool }}"
enable_prometheus_ceph_mgr_exporter: "no"
enable_prometheus_openstack_exporter: "{{ enable_prometheus | bool }}"
enable_prometheus_openstack_exporter_external: "no"
enable_prometheus_elasticsearch_exporter: "{{ enable_prometheus | bool and enable_elasticsearch | bool }}"
enable_prometheus_blackbox_exporter: "{{ enable_prometheus | bool }}"
enable_prometheus_rabbitmq_exporter: "{{ enable_prometheus | bool and enable_rabbitmq | bool }}"

@ -89,6 +89,11 @@ prometheus_services:
mode: "http"
external: false
port: "{{ prometheus_openstack_exporter_port }}"
prometheus_openstack_exporter_external:
enabled: "{{ enable_prometheus_openstack_exporter_external | bool }}"
mode: "http"
external: true
port: "{{ prometheus_openstack_exporter_port }}"
prometheus-elasticsearch-exporter:
container_name: prometheus_elasticsearch_exporter
group: prometheus-elasticsearch-exporter

@ -0,0 +1,11 @@
---
features:
- |
Adds a new, disabled by default, option for Prometheus
OpenStack exporter, named
"enable_prometheus_openstack_exporter_external".
This option allows exposing OpenStack exporter through
HAProxy, and may be used to expose OpenStack metrics
to an existing Prometheus server outside the OpenStack
cloud, instead of using the default one provided by
OpenStack.