Allow exposing OpenStack exporter via HAProxy

Signed-off-by: Franco Mariotti <fmariotti@whitestack.com>
Change-Id: Ie151cd97d3e0ba3bfec9e95a5b8bdfef0b54806c
This commit is contained in:
Franco Mariotti 2022-07-28 12:33:41 -03:00
parent 09adcf0181
commit 7219279215
3 changed files with 17 additions and 0 deletions

View File

@ -1133,6 +1133,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 }}"

View File

@ -87,6 +87,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

View File

@ -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.