diff --git a/apps/k8s01/immich/slo.yaml b/apps/k8s01/immich/slo.yaml index 6f266022cbef7aa01b2c809066a6a5218f0b77f6..452b58750209702eeee3eb44e0049ff1197997ac 100644 --- a/apps/k8s01/immich/slo.yaml +++ b/apps/k8s01/immich/slo.yaml @@ -11,8 +11,8 @@ spec: description: "Immich: SLO based on availability for HTTP request responses." sli: events: - errorQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="immich",ingress="immich-proxy",status=~"(5..|429)"}[{{.window}}])) OR vector(0) - totalQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="immich",ingress="immich-proxy"}[{{.window}}])) > 0 OR vector(1) + errorQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="immich",status=~"(5..|429)"}[{{.window}}])) OR vector(0) + totalQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="immich"}[{{.window}}])) > 0 OR vector(1) alerting: name: ImmichHighErrorRate labels: @@ -28,11 +28,11 @@ spec: events: errorQuery: | ( - sum(rate(nginx_ingress_controller_request_duration_seconds_count{exported_namespace="immich",ingress="immich-proxy",method!="WATCH"}[{{.window}}])) + sum(rate(nginx_ingress_controller_request_duration_seconds_count{exported_namespace="immich",method!="WATCH"}[{{.window}}])) - - sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{exported_namespace="immich",ingress="immich-proxy",le="0.25",verb!="WATCH"}[{{.window}}])) + sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{exported_namespace="immich",le="0.25",verb!="WATCH"}[{{.window}}])) ) - totalQuery: sum(rate(nginx_ingress_controller_request_duration_seconds_count{exported_namespace="immich",ingress="immich-proxy",method!="WATCH"}[{{.window}}])) > 0 OR vector(1) + totalQuery: sum(rate(nginx_ingress_controller_request_duration_seconds_count{exported_namespace="immich",method!="WATCH"}[{{.window}}])) > 0 OR vector(1) alerting: name: ImmichLatencyAlert labels: