Skip to content

Commit

Permalink
Add a dummy canary so we can detect if alerts are being loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorhuertas committed Oct 16, 2023
1 parent 69ed13b commit 4f1869d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions common/canary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# PROMETHEUS RULES
# DO NOT REMOVE line above, used in `pre-commit` hook

groups:
# Allows detecting if alerts are being loaded in thanos-rule
- name: canary
rules:
# The alert is dummy, will never trigger
- alert: NoOpCanary
expr: vector(0)
1 change: 1 addition & 0 deletions common/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ configMapGenerator:
- files:
- all.yaml.tmpl=all.yaml.tmpl
- logging.yaml.tmpl=logging.yaml.tmpl
- canary.yaml.tmpl
- container.yaml.tmpl
- missing_replicas.yaml.tmpl
- namespace_sync.yaml.tmpl
Expand Down

0 comments on commit 4f1869d

Please sign in to comment.