Hi Evelyn, 

I hope I'm understanding correctly, you could do something like this for 
defining the intervals for the year:

mute_time_intervals:
  - name: maintenance_windows
    time_intervals:
      - months: ['january']
        days_of_month: ['7', '18', '28']
        times:
          - start_time: '18:00'
            end_time: '24:00'
      - months: ['february']
        days_of_month: ['5', '14', '26']
        times:
          - start_time: '18:00'
            end_time: '24:00'
      - months: ['march']
        days_of_month: ['8', '19', '30']
        times:
          - start_time: '18:00'
            end_time: '24:00'
      ... etc

​
Then inside whatever routes you are using, you just need to reference the 
interval:

route:
  group_by: ['...']
  group_wait: 1s
  group_interval: 1m
  repeat_interval: 3h
  routes:
    - matchers:
         - severity = critical
      mute_time_intervals:
        - maintenance_windows

​
I hope that helps!

Cheers,
Ben


On Thursday, August 19, 2021 at 7:25:20 PM UTC+10 Evelyn Pereira Souza 
wrote:

> Hi 
>
> I need some mute_time_interval examples. 
>
> Beginning of the year we define every month 3x maintenance window. The 
> dates different for every month. The time the same. 
>
> I wish that in those 3x maintenance window every month no alerts going 
> out. 
>
> Can you provide me examples how-to implement that? 
>
> This docs not enough help for me 
>
> https://prometheus.io/docs/alerting/latest/configuration/#mute_time_interval 
>
> kind regards 
> Evelyn 
>

-- 
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/060108c3-6fdc-4280-85a8-0313baf60738n%40googlegroups.com.

Reply via email to