Skip to content

Commit

Permalink
fix(goldpinger): fix default prometheusRule. (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
desaintmartin authored Sep 21, 2021
1 parent 9d9c84c commit 3340c60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/goldpinger/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: goldpinger
sources:
- https://github.com/bloomberg/goldpinger
- https://github.com/okgolove/helm-charts
version: 4.3.0
version: 4.3.1
5 changes: 4 additions & 1 deletion charts/goldpinger/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,13 @@ prometheusRule:
enabled: false
rules:
- alert: goldpinger_nodes_unhealthy
expr: sum(goldpinger_nodes_health_total{job={{ template "goldpinger.fullname" . }}, status="unhealthy"})
expr: |
sum(goldpinger_nodes_health_total{job="{{ template "goldpinger.fullname" . }}", status="unhealthy"})
BY (instance, goldpinger_instance) > 0
for: 5m
annotations:
description: |
Goldpinger instance {{ "{{ $labels.goldpinger_instance }}" }} has been reporting unhealthy nodes for at least 5 minutes.
summary: Instance {{ "{{ $labels.instance }}" }} down
labels:
severity: warning

0 comments on commit 3340c60

Please sign in to comment.