Yes,my AlertManager is used together with Prometheus. 
In prometheus.yml: 

alerting:
  alertmanagers:
  - static_configs:
    - targets: ["x.x.x.x:9093"]


For all the warning message i received,  then immediately  a resolved 
message received.  This is not i want. 

Thanks,
Lei

在2020年8月5日星期三 UTC+8 下午6:31:20<Christian Hoffmann> 写道:

> On 8/5/20 10:21 AM, [email protected] wrote:
> > rules.yml
> > groups:
> > - name: network-delay
> >   rules:
> >   - alert: "network delay"
> >     expr: probe_duration_seconds * 1000 > 3000
> >     for: 1s
> >     labels:
> >       severity: warning
> >       team: ops
> >     annotations:
> >       description: "{{$labels.instance}} : {{ $value }}"
> > 
> > alertmanager resolve_timeout is 5m
> > 
> > So after a warning is fired, in my opinion at least 5 mins later the
> > resolved messge can be sent. But the resolved msg is sent immediately
> > after the warning msg. why?
>
> resolve_timeout is only relevant in very rare cases, at least when
> Alertmanager is used together with Prometheus.
>
> What's your reason for asking? Are you maybe looking for group_wait and
> group_interval instead?
>
> 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/24914f76-eeb6-4874-bb1e-a69e6a42fddan%40googlegroups.com.

Reply via email to