Skip to content

Commit b215a07

Browse files
keukoAlex-Welsh
authored andcommitted
Fix ironic's metrics when prometheus exporter enabled
This patch is just fixing ironic's configuration when ironic's prometheus exporter is turned on. More in documentation here [1]. [1] https://docs.openstack.org/ironic-prometheus-exporter/latest/configuration.html Closes-Bug: #2097096 https://review.opendev.org/c/openstack/kolla/+/963258 Signed-off-by: Serhat Rıfat Demircan <[email protected]> Change-Id: I360f2b7118731554d8fc81cb192809e605b627fc (cherry picked from commit 55fd5a0) Signed-off-by: Maksim Malchuk <[email protected]>
1 parent e637b9d commit b215a07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ansible/roles/ironic/templates/ironic.conf.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ driver = noop
3737
location = /var/lib/ironic-metrics
3838
{% endif %}
3939

40+
{% if enable_ironic_prometheus_exporter | bool %}
41+
[metrics]
42+
backend = collector
43+
{% endif %}
44+
4045
[oslo_messaging_rabbit]
4146
{% if om_enable_queue_manager | bool %}
4247
use_queue_manager = true

0 commit comments

Comments
 (0)