From 4ddad5250b9313926428ec106687065de0cea556 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Thu, 29 Aug 2024 02:56:54 +0100 Subject: [PATCH] Update prometheus.yml.j2 to Caracal --- etc/kayobe/ansible/prometheus.yml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/kayobe/ansible/prometheus.yml.j2 b/etc/kayobe/ansible/prometheus.yml.j2 index 8ee107ecd..c40b0cdcb 100644 --- a/etc/kayobe/ansible/prometheus.yml.j2 +++ b/etc/kayobe/ansible/prometheus.yml.j2 @@ -273,9 +273,9 @@ scrape_configs: alerting: alertmanagers: - - static_configs: - - targets: + - static_configs: {% for host in groups["prometheus-alertmanager"] %} + - targets: - '{{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ hostvars[host]['prometheus_alertmanager_port'] }}' {% if hostvars[host].prometheus_instance_label | default(false, true) %} labels: