Skip to content

Instantly share code, notes, and snippets.

@cmaster11
Created November 7, 2019 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmaster11/a53d19ee8af8581aa489a0e0c70d8adb to your computer and use it in GitHub Desktop.
Save cmaster11/a53d19ee8af8581aa489a0e0c70d8adb to your computer and use it in GitHub Desktop.
Markdium-How to get notifications when Kubernetes CronJobs fail
label: Overseer
title: "Overseer [{{if .error}}ERR{{if .isDedup}}-DUP{{end}}{{else}}{{if .recovered}}RECOVERED{{else}}OK{{end}}{{end}}] ({{.tag}}): {{.input}}"
content: |-
{{if .error -}}
{{if eq .type "k8s-event"}}Event{{else}}Error{{end}}
{{- if .isDedup}} (duplicated){{end}}: {{.error}}{{end}}
Tag: {{.tag}}
Input: {{.input}}
Target: {{ .target }}
Type: {{ .type }}
Time: {{ .time | ParseUnixTime }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment