From c945575ea16d03899a4501d742dcffd6624ab676 Mon Sep 17 00:00:00 2001 From: AB-UK Date: Thu, 8 Jan 2026 17:17:21 +0000 Subject: [PATCH] Fixed alert --- .../grafana-alerting-configmap.yaml | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/k8s/core/prom-stack/grafana-alerting-configmap.yaml b/k8s/core/prom-stack/grafana-alerting-configmap.yaml index bfcd650..2881077 100644 --- a/k8s/core/prom-stack/grafana-alerting-configmap.yaml +++ b/k8s/core/prom-stack/grafana-alerting-configmap.yaml @@ -14,7 +14,7 @@ data: rules: - uid: pasarguard_cpu_throttling title: VPN CPU Throttle - condition: A + condition: B data: - refId: A relativeTimeRange: @@ -22,8 +22,32 @@ data: to: 0 datasourceUid: P76F38748CEC837F0 model: - expr: 'rate(container_cpu_cfs_throttled_periods_total{container="pasarguard-node"}[5m]) > 0.1' + expr: 'rate(container_cpu_cfs_throttled_periods_total{container="pasarguard-node"}[5m])' refId: A + intervalMs: 1000 + maxDataPoints: 43200 + - refId: B + relativeTimeRange: + from: 600 + to: 0 + datasourceUid: __expr__ + model: + conditions: + - evaluator: + params: + - 0.1 + type: gt + operator: + type: and + query: + params: [] + datasource: + type: __expr__ + uid: __expr__ + expression: A + reducer: last + refId: B + type: reduce noDataState: NoData execErrState: Alerting for: 5m