ok got it, ignore the dollar sign, its from grafana
count(sum(kafka_consumergroup_lag{consumergroup="$consumergroup"}) by
(consumergroup)) -1 or on() vector(1)
ב-יום שני, 16 באוגוסט 2021 בשעה 12:19:33 UTC+3, Yaron B כתב/ה:
> Hello, I have a metric that checks the lag of a consumer group.
> from time to time, the metric is missing for a specific label, as shown
> in the image attached.
>
> I would like to get a graph that counts whenever there is a missing data
> point.
> for example , for the image attached I would like to get 0 until
> 6:50,
> then 1 until 7:50, 0 again until 8:05, and then 1 until 8:58
>
> is there a way to write a query to this metric to get the graph that I
> need?
>
> thanks!
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/804f5306-3be2-4d5e-b924-83d30d2e947cn%40googlegroups.com.