Hello Developers,
Please let me know how to create alerting rule such that, whenever
Prometheus scrapes a gauge metric with a new label value from Pushgateway,
I need to check that value range and raise an alert if it is out of range.
For example:
I want to alert if file_size>100 for newly added files, id is different and
random for each file
file_size{job=”pushgateway”, id=F234} 80 (in GB)
file_size{job=”pushgateway”, id=F129} 40 (in GB)
whenever new file_size(job=”pushgateway”, id=F787} 23 is added to
Prometheus, I should be check 23>100? and send an alert mail such that,
“file with id F787 size exceeded”.
--
You received this message because you are subscribed to the Google Groups
"Prometheus Developers" 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-developers/6891e09a-ebd0-499e-b83a-4a5cbe0938d7n%40googlegroups.com.