Commit 6a8e82a2 authored by Andrew Newdigate's avatar Andrew Newdigate

slo_observation_status comes with `stage`dimension

parent 29754059
......@@ -46,6 +46,6 @@ groups:
labels:
slo: 'apdex_ratio'
expr: >
clamp_min(avg_over_time(gitlab_service_apdex:ratio[1m]) >= ignoring(environment) group_left slo:min:gitlab_service_apdex:ratio, 1)
clamp_min(avg_over_time(gitlab_service_apdex:ratio[1m]) >= ignoring(environment, stage) group_left slo:min:gitlab_service_apdex:ratio, 1)
or
clamp_max(avg_over_time(gitlab_service_apdex:ratio[1m]) < ignoring(environment) group_left slo:min:gitlab_service_apdex:ratio, 0)
clamp_max(avg_over_time(gitlab_service_apdex:ratio[1m]) < ignoring(environment, stage) group_left slo:min:gitlab_service_apdex:ratio, 0)
......@@ -58,6 +58,6 @@ groups:
labels:
slo: 'error_ratio'
expr: >
clamp_min(avg_over_time(gitlab_service_errors:ratio[1m]) <= ignoring(environment) group_left slo:max:gitlab_service_errors:ratio, 1)
clamp_min(avg_over_time(gitlab_service_errors:ratio[1m]) <= ignoring(environment, stage) group_left slo:max:gitlab_service_errors:ratio, 1)
or
clamp_max(avg_over_time(gitlab_service_errors:ratio[1m]) > ignoring(environment) group_left slo:max:gitlab_service_errors:ratio, 0)
clamp_max(avg_over_time(gitlab_service_errors:ratio[1m]) > ignoring(environment, stage) group_left slo:max:gitlab_service_errors:ratio, 0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment