Try to fix alert rule

This commit is contained in:
Seth Call 2025-12-14 08:35:00 -06:00
parent 25d5209fbe
commit a7f2a3dbf1
1 changed files with 10 additions and 10 deletions

View File

@ -9,16 +9,16 @@ spec:
groups:
- name: webrtc-be.alerts
rules:
- alert: WebrtcBeError
expr: 'sum(count_over_time({container="webrtc-be", namespace="webrtc-be"} |= "error" [5m])) > 0'
for: 1m
labels:
severity: critical
annotations:
summary: "Errors found in webrtc-be logs"
description: "The webrtc-be container is logging errors. Please check the logs."
loki_link: >-
{{ .Values.grafana.externalUrl }}/explore?orgId=1&left=["now-1h","now","Loki",{"expr":"{container=\"webrtc-be\", namespace=\"webrtc-be\"}"}]
# - alert: WebrtcBeError
# expr: 'sum(count_over_time({container="webrtc-be", namespace="webrtc-be"} |= "error" [5m])) > 0'
# for: 1m
# labels:
# severity: critical
# annotations:
# summary: "Errors found in webrtc-be logs"
# description: "The webrtc-be container is logging errors. Please check the logs."
# loki_link: >-
# {{ .Values.grafana.externalUrl }}/explore?orgId=1&left=["now-1h","now","Loki",{"expr":"{container=\"webrtc-be\", namespace=\"webrtc-be\"}"}]
- alert: WebrtcBeCrashed
expr: increase(kube_pod_container_status_restarts_total{container="webrtc-be", namespace="webrtc-be"}[5m]) > 0