From e164a270fae718af1a31d45b1f5bbdea43a67d11 Mon Sep 17 00:00:00 2001 From: Hector Huertas Date: Fri, 13 Oct 2023 17:05:56 +0200 Subject: [PATCH] Add a dummy canary so we can detect if alerts are being loaded --- common/canary.yaml | 10 ++++++++++ common/kustomization.yaml | 1 + 2 files changed, 11 insertions(+) create mode 100644 common/canary.yaml diff --git a/common/canary.yaml b/common/canary.yaml new file mode 100644 index 0000000..2df8854 --- /dev/null +++ b/common/canary.yaml @@ -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: DummyCanary + expr: vector(1) == 0 diff --git a/common/kustomization.yaml b/common/kustomization.yaml index b3aac9e..5e2819f 100644 --- a/common/kustomization.yaml +++ b/common/kustomization.yaml @@ -5,6 +5,7 @@ configMapGenerator: - files: - all.yaml.tmpl=all.yaml.tmpl - logging.yaml.tmpl=logging.yaml.tmpl + - canary.yaml - container.yaml.tmpl - missing_replicas.yaml.tmpl - namespace_sync.yaml.tmpl