From 659943ccc5c341b6089bf1536c4db42fdf01a8ac Mon Sep 17 00:00:00 2001 From: friedrich goerz Date: Fri, 16 Sep 2022 09:56:04 +0200 Subject: [PATCH] DEV-563: bugfixed hetzner rate limit alert --- templates/prometheus/config/prometheus/alert.rules.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/prometheus/config/prometheus/alert.rules.j2 b/templates/prometheus/config/prometheus/alert.rules.j2 index ecc3e8b..a8c7a44 100644 --- a/templates/prometheus/config/prometheus/alert.rules.j2 +++ b/templates/prometheus/config/prometheus/alert.rules.j2 @@ -390,7 +390,7 @@ groups: - alert: hetzner ratelimit_remaining low - expr: (hetzner_api_ratelimit_remaining * 100)/ hetzner_api_ratelimit_remaining < 50 or absent(hetzner_api_ratelimit_remaining) + expr: (hetzner_api_ratelimit_remaining * 100)/ hetzner_api_ratelimit_limit < 50 or absent(hetzner_api_ratelimit_remaining) for: 10m labels: severity: critical