Skip to content

Instantly share code, notes, and snippets.

@mustafaakin
Created December 12, 2019 10:57
Show Gist options
  • Save mustafaakin/8839301694f6e855e1a234382fed639d to your computer and use it in GitHub Desktop.
Save mustafaakin/8839301694f6e855e1a234382fed639d to your computer and use it in GitHub Desktop.
Receiver configuration for Kubernetes Event Exporter
receivers:
- name: "alerts"
opsgenie:
apiKey: xxx
priority: "P3"
message: "Event {{ .Reason }} for {{ .InvolvedObject.Namespace }}/{{ .InvolvedObject.Name }} on K8s cluster"
alias: "{{ .UID }}"
description: "<pre>{{ toPrettyJson . }}</pre>"
tags:
- "event"
- "{{ .Reason }}"
- "{{ .InvolvedObject.Kind }}"
- "{{ .InvolvedObject.Name }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment