Modify instance_ping_success recording rule to track instance without it's host
Related-PROD: PROD-35562
Change-Id: I62f19c74ad3c05e02870de52c961b5d0426ed7df
diff --git a/telegraf/meta/prometheus.yml b/telegraf/meta/prometheus.yml
index eef9957..fd73f87 100644
--- a/telegraf/meta/prometheus.yml
+++ b/telegraf/meta/prometheus.yml
@@ -190,7 +190,7 @@
recording:
instance_id:instance_ping_success:
query: >-
- avg(instance_ping_success) by (id) * on(id) instance_ping_valid or on(id) instance_ping_valid
+ avg(instance_ping_success) by (id) * on(id) max without(host, instance) (instance_ping_valid) or on(id) max without(host, instance) (instance_ping_valid)
instance_id:instance_ping_success:avg10m:for10m:
query: >-
avg_over_time(instance_id:instance_ping_success[10m]) and instance_id:instance_ping_success and instance_id:instance_ping_success offset 10m