summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFarid Da Encarnacao <fdaencar@redhat.com>2020-05-27 18:06:19 -0400
committerFarid Da Encarnacao <fdaencar@redhat.com>2020-05-27 18:07:59 -0400
commitc5d7daa5929be0ab5aadb0daf35aeea8c8adc9f2 (patch)
tree6d47e85e5f2b7357fef7858478f601b210d71e47
parentc1b695447166d1e8e832eaecd524afb91f4f80be (diff)
Fix ssl rules
The job for ssl rule it's not blackbox, it's blackbox_2xx, blackbox_4xx ect... Using a regex to be able to fetch all of them Change-Id: Ie235df4486a2f4360b3a2f008b8b890680297341
-rw-r--r--roles/dci-prometheus-server/files/rules.d/ssl.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/dci-prometheus-server/files/rules.d/ssl.rules b/roles/dci-prometheus-server/files/rules.d/ssl.rules
index a352595..1d4eb0d 100644
--- a/roles/dci-prometheus-server/files/rules.d/ssl.rules
+++ b/roles/dci-prometheus-server/files/rules.d/ssl.rules
@@ -3,7 +3,7 @@ groups:
rules:
- alert: ssl_expiring_soon
- expr: probe_ssl_earliest_cert_expiry{job="blackbox"} - time() < 86400 * 10
+ expr: probe_ssl_earliest_cert_expiry{job=~"blackbox.*"} - time() < 86400 * 10
for: 10m
labels:
severity: critical