Relabel remote_agent_openstack_api instance label
Change-Id: Iad6981f0bb5a38b978da1d942ce14592d744a7e4
Related-PROD: PROD-35549
diff --git a/prometheus/files/server/prometheus.yml b/prometheus/files/server/prometheus.yml
index 7525492..86cbd3a 100644
--- a/prometheus/files/server/prometheus.yml
+++ b/prometheus/files/server/prometheus.yml
@@ -405,7 +405,7 @@
target_label: environment
replacement: {{ server.config.environment_label }}
{%- endif %}
- {%- if endpoint.name in ['remote_agent', 'remote_agent_openstack', 'elasticsearch_exporter'] %}
+ {%- if endpoint.name in ['remote_agent', 'remote_agent_openstack', 'remote_agent_openstack_api', 'elasticsearch_exporter'] %}
- source_labels: ['__meta_dns_name']
regex: ^tasks.(.*)$
replacement: $1:{{ endpoint.port }}