Created
November 7, 2019 17:54
-
-
Save cmaster11/de61a28880f14bb6a68c02c566f8c0bc 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