Created
November 7, 2019 17:59
-
-
Save cmaster11/a53d19ee8af8581aa489a0e0c70d8adb to your computer and use it in GitHub Desktop.
Markdium-How to get notifications when Kubernetes CronJobs fail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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