Thank you Chris :)

It really seems work.

Now I can continue my tests

[ ] 's

Em segunda-feira, 17 de junho de 2024 às 14:41:59 UTC-3, Chris Siebenmann 
escreveu:

> > I am testing server monitoring with Prometheus and creating alerts with 
> > Alertmanager.
> >
> > My current scenario involves two machines (I'll call them A and B) being 
> > monitored by Prometheus.
> >
> > I have created alerts so that when one of the servers is down (or both), 
> I 
> > get notified via Telegram and email.
> >
> > In my test, when I shut down server A, I am correctly notified of its 
> > downtime. However, if I shut down server B, I receive an alert whose 
> body 
> > contains information not only about the downtime of B but also of A.
> >
> > This would be very problematic considering I have a large number of 
> devices 
> > to monitor.
> >
> > How can I ensure that each alert refers only to the specific event it 
> > corresponds to?
>
> Alertmanager sends notifications about *groups* of alerts, not
> individual alerts, although you can make a group any size you want, down
> to a single alert. Grouping is based on the labels assigned to each
> individual alert from Prometheus, and is set in the relevant 'route:'
> block, using 'group_by'.
>
>
> https://prometheus.io/docs/alerting/latest/configuration/#route-related-settings
>
> If you want separate alert notifications about each separate host, you
> need to group by a label that names the host, possibly among other
> labels. If you really want one notification for each alert, there is an
> option for this, covered in the configuration documentation.
>
> - cks
>
>

-- 
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/ab409f98-7329-4f3b-97de-8544e932f583n%40googlegroups.com.

Reply via email to