Try to fix alert rule
This commit is contained in:
parent
25d5209fbe
commit
a7f2a3dbf1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue