Skip to content

Instantly share code, notes, and snippets.

@erpel
Created July 28, 2020 12:38
Show Gist options
  • Save erpel/7f8f89918158f366a06767cf9624d99c to your computer and use it in GitHub Desktop.
Save erpel/7f8f89918158f366a06767cf9624d99c to your computer and use it in GitHub Desktop.
How to specify extra alert rules for prometheus-operator 9.2.2
additionalPrometheusRulesMap:
infra:
groups:
- name: infra
rules:
- alert: InstanceDown
expr: up == 0
for: 5m
labels:
severity: critical
annotations:
summary: "Instance {{ $labels.instance }} down"
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment