Skip to content

Commit

Permalink
Simplify alert message formatting in Opsgenie templates
Browse files Browse the repository at this point in the history
Removed redundant square brackets around the severity level in Opsgenie alert messages for a cleaner and more consistent format. The change applies to both Sev3 and Sev1 alerts.
  • Loading branch information
ffppa committed Jan 17, 2025
1 parent de64488 commit 461d697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubernetes_event_exporter/templates/default.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ config:
opsgenie:
apiKey: "${opsgenie_api_key}"
priority: "P3"
message: "[${alert_prefix}][AKS Sev3] {{ .Reason }} for {{ .InvolvedObject.Namespace }}/{{ .InvolvedObject.Name }} on K8s cluster"
message: "${alert_prefix}[Sev3] {{ .Reason }} for {{ .InvolvedObject.Namespace }}/{{ .InvolvedObject.Name }} on K8s cluster"
alias: "{{ .UID }}"
description: "<pre>{{ toPrettyJson . }}</pre>"
tags:
Expand All @@ -36,7 +36,7 @@ config:
opsgenie:
apiKey: "${opsgenie_api_key}"
priority: "P1"
message: "[${alert_prefix}][AKS Sev1] {{ .Reason }} for {{ .InvolvedObject.Namespace }}/{{ .InvolvedObject.Name }} on K8s cluster"
message: "${alert_prefix}[Sev1] {{ .Reason }} for {{ .InvolvedObject.Namespace }}/{{ .InvolvedObject.Name }} on K8s cluster"
alias: "{{ .UID }}"
description: "<pre>{{ toPrettyJson . }}</pre>"
tags:
Expand Down

0 comments on commit 461d697

Please sign in to comment.