From 96b79c231c42bd0f5aab20025140939fc8f4e232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pr=C3=A9vost?= <998369+prevostc@users.noreply.github.com> Date: Tue, 3 Dec 2024 07:16:43 +0100 Subject: [PATCH] Fix mute timing config --- analytics/provisioning/alerting/mute_timings.yaml | 3 +-- analytics/provisioning/alerting/notification_policy.yaml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/analytics/provisioning/alerting/mute_timings.yaml b/analytics/provisioning/alerting/mute_timings.yaml index 99ba5c8..b75c64c 100644 --- a/analytics/provisioning/alerting/mute_timings.yaml +++ b/analytics/provisioning/alerting/mute_timings.yaml @@ -6,7 +6,7 @@ muteTimes: # organization ID, default = 1 - orgId: 1 # name of the mute time interval, must be unique - name: "Mute all except Tuesdays at working US hours" + name: 'Mute all except Tuesdays at working US hours' # time intervals that should trigger the muting # refer to https://prometheus.io/docs/alerting/latest/configuration/#time_interval-0 time_intervals: @@ -17,4 +17,3 @@ muteTimes: end_time: '23:59' location: 'UTC' weekdays: ['monday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'] - \ No newline at end of file diff --git a/analytics/provisioning/alerting/notification_policy.yaml b/analytics/provisioning/alerting/notification_policy.yaml index c1374a8..8986716 100644 --- a/analytics/provisioning/alerting/notification_policy.yaml +++ b/analytics/provisioning/alerting/notification_policy.yaml @@ -16,7 +16,7 @@ policies: - alertname != DatasourceError - receiver: discord_follow_up mute_time_intervals: - - name: "Mute all except Tuesdays at working US hours" + - 'Mute all except Tuesdays at working US hours' matchers: - policy = follow_up_tuesdays - alertname != DatasourceError