> What versions of prometheus and alertmanager are you running?
prometheus version: 2.20.1
alertmanager version: 0.21.0

> Are you running any sort of HA setup for alertmanager?
no

Here is my config
*1. rules.yml*
groups:
- name: dockermonitoring
  rules:
  # Alert for any docker container that is unreachable for >5 seconds.
  - alert: ContainerKilled
    expr: time() - container_last_seen{id=~"/docker/.*"} > 5
    for: 5s
    labels:
      severity: critical
    annotations:
      summary: "Container killed (instance {{ $labels.instance }})"
      description: "A container has disappeared\n  VALUE = {{ $value }}\n  
LABELS: {{ $labels }}"


*2. alertmanager.yml*
global:
  resolve_timeout: 1h

route:
  receiver: 'prometheus-msteams'
  group_by: ['name']
  group_wait: 1s
  group_interval: 30s
  repeat_interval: 1h

receivers:
  - name: 'prometheus-msteams'
    webhook_configs:
    - url: 'http://promteams:2000/alertmanager' # the prometheus-msteams 
proxy
      send_resolved: true


*3. prometheus.yml*
# my global config
global:
  scrape_interval:     10s # Set the scrape interval to every 15 seconds. 
Default is every 1 minute.
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default 
is every 1 minute.
  query_log_file: /opt/opencafe/monitoring/prometheus/logs/query.log
  # scrape_timeout is set to the global default (10s).
.....

2020년 10월 12일 월요일 오후 6시 42분 10초 UTC+9에 [email protected]님이 작성:

> Show your alerting rule.
>
> One possibility is that the labels of the alert are changing.  Alerts with 
> different labels are treated as different alerts, and therefore the alert 
> with the original set of labels will be considered resolved.
>
> > is this bug??
>
> What versions of prometheus and alertmanager are you running?
> Are you running any sort of HA setup for alertmanager?
>

-- 
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/b9d8fd23-38be-4ff4-a47a-c3a92d7ba875n%40googlegroups.com.

Reply via email to