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
sum(time() - datum_cloud_networking_gateway_created) by (resourcemanager_datumapis_com_project_name, resource_namespace, resource_name) > 60
8
+
unless (
9
+
sum(datum_cloud_networking_gateway_status{type=~"Accepted|Programmed"} == 1) by (resourcemanager_datumapis_com_project_name, resource_namespace, resource_name) == 2
10
+
)
11
+
for: 0s
12
+
labels:
13
+
severity: critical
14
+
slo_violation: "true"
15
+
annotations:
16
+
summary: "Gateway {{ $labels.resource_name }} is taking longer than 60 seconds to reach Ready status"
17
+
description: "Gateway {{ $labels.resource_name }} in namespace {{ $labels.resource_namespace }} has been in creation state for {{ $value }} seconds without reaching Ready status (Accepted=True AND Programmed=True), which exceeds the 60-second SLO threshold."
by (resourcemanager_datumapis_com_project_name, resource_namespace, resource_name) < 2
28
+
)
29
+
for: 0s
30
+
labels:
31
+
severity: critical
32
+
slo_violation: "true"
33
+
annotations:
34
+
summary: "Gateway {{ $labels.resource_name }} has been degraded for over 60 seconds"
35
+
description: "Gateway {{ $labels.resource_name }} in namespace {{ $labels.resource_namespace }} has been in a degraded state for over 60 seconds without recovering, which exceeds the 60-second SLO threshold."
summary: "Gateway test-gateway is taking longer than 60 seconds to reach Ready status"
30
+
description: "Gateway test-gateway in namespace test-ns has been in creation state for 120 seconds without reaching Ready status (Accepted=True AND Programmed=True), which exceeds the 60-second SLO threshold."
31
+
32
+
# Test for GatewayNotReadySLOViolation - Gateway ready (should NOT alert)
summary: "Gateway degraded-gateway has been degraded for over 60 seconds"
71
+
description: "Gateway degraded-gateway in namespace test-ns has been in a degraded state for over 60 seconds without recovering, which exceeds the 60-second SLO threshold."
72
+
73
+
# Test for GatewayDegradedSLOViolation - Gateway functional (should NOT alert)
0 commit comments