From 02520101bca1e324fcf2142fcda4e1cc7ecb8cf4 Mon Sep 17 00:00:00 2001 From: okozachenko Date: Fri, 17 Jul 2020 18:35:57 +0300 Subject: [PATCH] Fix rabbitmq podmonitor to scrap from all rabbitmq Change-Id: Iecae25d387f2ee24a08474f2c6915655487e369f --- openstack_operator/templates/rabbitmq/podmonitor.yml.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openstack_operator/templates/rabbitmq/podmonitor.yml.j2 b/openstack_operator/templates/rabbitmq/podmonitor.yml.j2 index d47d7e5b..d66c5424 100644 --- a/openstack_operator/templates/rabbitmq/podmonitor.yml.j2 +++ b/openstack_operator/templates/rabbitmq/podmonitor.yml.j2 @@ -18,7 +18,7 @@ kind: PodMonitor metadata: name: rabbitmq-podmonitor labels: - {{ labels("rabbitmq", name) | indent(4) }} + {{ labels("rabbitmq") | indent(4) }} spec: podMetricsEndpoints: - interval: 15s @@ -26,4 +26,6 @@ spec: port: metrics selector: matchLabels: - {{ labels("rabbitmq", name) | indent(6) }} + app.kubernetes.io/name: rabbitmq + app.kubernetes.io/managed-by: openstack-operator +