No, I did not set send_resolved: true. I am trying to add this line to my
configuration file, but there is no result. But if I look at the
alertmanager status page, I will see the line send_resolved: false in my
configuration.
global:
slack_api_url: 'https://hooks.........'
route:
group_by: [alertname]
# Send all notifications to me.
receiver: notify-me
receivers:
- name: notify-me
email_configs:
- to: [email protected]
from: [email protected]
smarthost: smtp.gmail.com:587
auth_username: "[email protected]"
auth_identity: "[email protected]"
auth_password: "pass"
- to: [email protected]
from: [email protected]
smarthost: smtp.gmail.com:587
auth_username: "[email protected]"
auth_identity: "[email protected]"
auth_password: "pass"
slack_configs:
- channel: '#some channel'
text: 'https://prometheus/alerts'
On Monday, July 13, 2020 at 4:24:48 PM UTC+3, Christian Hoffmann wrote:
>
> Hi,
>
> On 7/13/20 1:27 PM, Dmitry wrote:
> > Hello!
> > I have standard rule for prometheus alertmanager:
> > rules:
> > - alert: Instance_down
> > expr: up == 0
> > for: 1m
> > # Labels - additional labels to be attached to the alert
> > labels:
> > severity: 'critical'
> > annotations:
> > title: 'Instance {{ $labels.instance }} down'
> >
> description: '{{ $labels.instance }} of job {{ $labels.job }} has been
> down for more than 1 minute.'
>
> >
> > I receive firing alert messages on my email and slack when instance
> > falls. But i don't receive any messages when instance work is restored,
> > and alert status changes from firing.
> > Is there a way to sent a message when problem is resolved or alert comes
> > from firing to inactive?
>
> Can you confirm that you've set the send_resolved: true option in the
> relevant email_config and slack_config blocks?
>
> Kind regards,
> Christian
>
--
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/cda303e1-545b-46bf-817d-65f252fee386o%40googlegroups.com.