From 1682cda7261dfcf947cbacd655c1789a71011fb6 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 27 Dec 2022 19:45:43 +0100 Subject: [PATCH] MT#56292 Only expect rtpengine prometheus metrics on mgmt and rtp nodes Change-Id: Ibc6601cd30e831d8e0e01ca822f4a7016e7d5d01 --- templates/910_service-monitoring.yaml.tt2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/910_service-monitoring.yaml.tt2 b/templates/910_service-monitoring.yaml.tt2 index 9aa4be3..42a5f79 100644 --- a/templates/910_service-monitoring.yaml.tt2 +++ b/templates/910_service-monitoring.yaml.tt2 @@ -1,6 +1,9 @@ [% hostname = ngcp.get_hostname(); + is_mgmt = ngcp.has_role(hostname, 'mgmt'); + is_rtp = ngcp.has_role(hostname, 'rtp'); + argv.host = hostname; argv.type = 'ha_int'; PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host'; @@ -29,7 +32,9 @@ command: - "/^node_/" - "/^process_/" - "/^redis_/" +[% IF is_mgmt || is_rtp -%] - "/^rtpengine_/" +[% END -%] stderr: [] timeout: 10000 [% END -%]