This is what the `group_by` feature in the alertmanager routing is for. https://prometheus.io/docs/alerting/latest/configuration/#route
On Wed, May 24, 2023 at 11:33 AM Mario Cornaccini <[email protected]> wrote: > hi, we got a custom made exporter, checking for running linux processes.. > > i got 1 scrape job with 27 targets; > also there is a general alert rule: > expr: up==0 > > so, when the exporter crashed, we got 27 alerts. > > is there a way or best-practice to detect that the exporter crashed, and > inhibit the 27 alerts, and just have one alert, exporter crashed ? > > (happy to give any more info if needed) > cheers, fil > > -- > 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/b6796581-dcff-4577-a725-97e9e0e23c69n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/b6796581-dcff-4577-a725-97e9e0e23c69n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CABbyFmrZmoX%2BzdK6faQeXLVJvQUW6s7nd3BZBnGoCd%3DxZ-DdRA%40mail.gmail.com.

