Time-based muting

46 views
Skip to first unread message

Bruno Criado

unread,
May 20, 2021, 3:14:04 PM5/20/21
to Prometheus Users
I'm testing the new feature of muting an event based on time but looks like it's not working as expected yet.
...
  - group_by:
    - alertname
    - severity
    - env
    match:
      type: aws-alert
      mute_times: test
    receiver: aws-alert
    continue: true
...
mute_time_intervals:
- name: test
  time_intervals:
  - weekdays: ['monday']
    times:
    - start_time: '09:00'
      end_time: '09:01'
...

As you can see, I've declared the time interval (test) and linked with my receiver, but I'm not able to receive any alert when the time interval is declared on the receiver (I'm testing on Tuesday). So if I remove the mute_times I receive alerts as expected. 

Has someone already tested that feature? Is it working properly?

Bruno Criado

unread,
May 20, 2021, 3:51:38 PM5/20/21
to Prometheus Users
Just found the issue. I should use mute_time_intervals and not inside match

  - group_by:
    - alertname
    - severity
    - env
    match:
      type: aws-alarm
    mute_time_intervals:
      - test
    receiver: aws-alarm

Reply all
Reply to author
Forward
0 new messages