Skip to content

Instantly share code, notes, and snippets.

@iamsudip
Created November 25, 2020 16:30
Show Gist options
  • Save iamsudip/dc32387c73279ae30dec0667dbc2e477 to your computer and use it in GitHub Desktop.
Save iamsudip/dc32387c73279ae30dec0667dbc2e477 to your computer and use it in GitHub Desktop.
- alert: CronJobStatusFailed
expr: |
job_cronjob:kube_job_status_failed:sum
* ON(cronjob) GROUP_RIGHT()
kube_cronjob_labels
> 0
for: 1m
annotations:
description: '{{ $labels.cronjob }} last run has failed {{$value }} times.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment