You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consequence: "The service might experience performance degradation."
32
+
action: "Investigate the cause of high CPU usage and optimize if necessary."
33
+
labels:
34
+
service: dapla-statbank-authenticator
35
+
namespace: dapla-stat
36
+
severity: warning
37
+
38
+
# This alert checks if memory usage exceeds 90% of the 12GB limit, which could cause instability.
39
+
- alert: HighMemoryUsage
40
+
expr: sum by (namespace, pod) (container_memory_working_set_bytes{namespace="dapla-stat", pod=~"dapla-statbank-authenticator-.*"}) > 0.9 * sum by (namespace, pod) (kube_pod_container_resource_limits_memory_bytes{namespace="dapla-stat", pod=~"dapla-statbank-authenticator-.*"})
41
+
for: 5m
42
+
annotations:
43
+
title: "High memory usage detected"
44
+
consequence: "The service might experience instability due to high memory usage."
45
+
action: "Check memory utilization and consider increasing resources or optimizing the service."
46
+
labels:
47
+
service: dapla-statbank-authenticator
48
+
namespace: dapla-stat
49
+
severity: warning
50
+
51
+
# This alert detects a high number of error logs in dapla-statbank-authenticator.
52
+
- alert: HighNumberOfErrors
53
+
expr: (100 * sum by (app, namespace) (rate(log_messages_errors{app="dapla-statbank-authenticator", level=~"Error"}[3m])) / sum by (app, namespace) (rate(log_messages_total{app="dapla-statbank-authenticator"}[3m]))) > 10
54
+
for: 3m
55
+
annotations:
56
+
title: "High number of errors logged in dapla-statbank-authenticator"
57
+
consequence: "The application is logging a significant number of errors."
58
+
action: "Check the service logs for errors and address the root cause."
59
+
labels:
60
+
service: dapla-statbank-authenticator
61
+
namespace: dapla-stat
62
+
severity: critical
63
+
64
+
# This alert monitors the number of pod restarts for dapla-statbank-authenticator and triggers if more than 3 restarts occur within 15 minutes.
0 commit comments