Created
July 28, 2020 12:38
-
-
Save erpel/7f8f89918158f366a06767cf9624d99c to your computer and use it in GitHub Desktop.
How to specify extra alert rules for prometheus-operator 9.2.2
This file contains 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
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