From 448b9789d3796b163751eac66ff8e145970e7f1f Mon Sep 17 00:00:00 2001 From: Fabio Felici Date: Wed, 15 Jan 2025 14:23:39 +0100 Subject: [PATCH] Add new event reasons to default template config Included "FailedScheduling" and "EgressBlocked" as new event reasons directly in the template definition. Removed duplicate reason mappings to streamline configuration and avoid redundancy. --- kubernetes_event_exporter/templates/default.tftpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kubernetes_event_exporter/templates/default.tftpl b/kubernetes_event_exporter/templates/default.tftpl index 50273a1c..7341ab63 100644 --- a/kubernetes_event_exporter/templates/default.tftpl +++ b/kubernetes_event_exporter/templates/default.tftpl @@ -71,11 +71,9 @@ config: - kind: "HorizontalPodAutoscaler" - kind: "ScaledObjectCheckFailed" - reason: "FailedToUpdateEndpoint" + - reason: "FailedScheduling" + - reason: "EgressBlocked" match: - - receiver: ${opsgenie_receiver_name}-warning - reason: "FailedScheduling" - - receiver: ${opsgenie_receiver_name}-warning - reason: "EgressBlocked" - receiver: ${opsgenie_receiver_name}-warning reason: "OOMKilling" - receiver: "${opsgenie_receiver_name}-critical"