Re: [prometheus-users] how to get count of no.of instance

2024-05-26 Thread 'Brian Candler' via Prometheus Users
The labels for the two sides of the division need to match exactly. If they match 1:1 except for additional labels, then you can use xxx / on (foo,bar) yyy # foo,bar are the matching labels or xxx / ignoring (baz,qux) zzz # baz,qux are the labels to ignore If they match N:1 then you need to u

Re: [prometheus-users] how to get count of no.of instance

2024-05-26 Thread Sameer Modak
I tried the same i m not getting any data post adding below sum(kafka_consumergroup_lag{cluster=~"$cluster",consumergroup=~ "$consumergroup",topic=~"$topic"}) by (consumergroup, topic) / count(up{job= "prometheus.scrape.kafka_exporter"}) On Saturday, May 25, 2024 at 11:53:44 AM UTC+5:30 Ben Koch