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”.