But to answer your original question, you *can* match on year in mute_time_intervals if you really want, and the documentation shows how: https://prometheus.io/docs/alerting/latest/configuration/#time_interval
On Thursday, 9 September 2021 at 14:23:25 UTC+1 Brian Candler wrote: > For both planned and ad-hoc maintenance, you would be better off creating > "Silences" in alertmanager, via its own web interface or via one of the > alertmanager frontends like karma or alerta.io > > This lets you set start and end times for the silence periods. You can > match on labels and label patterns, so you can silence some alerts without > others. > > As far as I understand, "mute_time_intervals" is intended for fixed > regular patterns such as "don't alert this group between 6pm and 8am" > > On Thursday, 9 September 2021 at 13:37:15 UTC+1 Evelyn Pereira Souza wrote: > >> Hi >> >> mute_time_intervals: >> - name: Release >> time_intervals: >> - months: ["august"] >> days_of_month: ["25", "26", "27"] >> times: >> - start_time: "20:00" >> end_time: "23:00" >> - months: ["september"] >> days_of_month: ["25", "26", "27"] >> times: >> - start_time: "20:00" >> end_time: "23:00" >> - months: ["october"] >> days_of_month: ["19", "20", "21"] >> times: >> - start_time: "20:00" >> end_time: "23:00" >> - months: ["november"] >> days_of_month: ["15", "17", "22"] >> times: >> - start_time: "20:00" >> end_time: "23:00" >> >> How-To include here also the year? >> >> The I wish to do a second block for ad hoc maintenance (not planned) >> >> - name: AdHocMaintenanceWindows >> time_intervals: >> - months: ["august"] >> days_of_month: ["04"] >> times: >> - start_time: "02:00" >> end_time: "06:00" >> >> I prefer for this block something more simple: >> >> Just a date (example 09.09.2021) and and UTC start_time/end_time >> >> How to do that? >> >> 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/8765fb1c-e7f6-437c-95a2-3a701fda176fn%40googlegroups.com.

