diff --git a/apps/k8s01/immich/slo.yaml b/apps/k8s01/immich/slo.yaml index f497c9c0062281dc47fda4db7637eb4f26861b85..6f266022cbef7aa01b2c809066a6a5218f0b77f6 100644 --- a/apps/k8s01/immich/slo.yaml +++ b/apps/k8s01/immich/slo.yaml @@ -11,14 +11,14 @@ 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",status=~"(5..|429)"}[{{.window}}])) OR vector(0) - totalQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="immich",ingress="immich"}[{{.window}}])) > 0 OR vector(1) + 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) alerting: name: ImmichHighErrorRate labels: category: "availability" annotations: - summary: "High error rate on 'immich' requests responses" + summary: "High error rate on 'immich-proxy' requests responses" - name: "requests-latency" objective: 95 description: "Immich: SLO based on latency for HTTP request responses. Warns if requests take longer than 250ms. When responses are slower than 200ms they become noticable slow." @@ -28,14 +28,14 @@ spec: events: errorQuery: | ( - sum(rate(nginx_ingress_controller_request_duration_seconds_count{exported_namespace="immich",ingress="immich",method!="WATCH"}[{{.window}}])) + 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_bucket{exported_namespace="immich",ingress="immich",le="0.25",verb!="WATCH"}[{{.window}}])) + sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{exported_namespace="immich",ingress="immich-proxy",le="0.25",verb!="WATCH"}[{{.window}}])) ) - totalQuery: sum(rate(nginx_ingress_controller_request_duration_seconds_count{exported_namespace="immich",ingress="immich",method!="WATCH"}[{{.window}}])) > 0 OR vector(1) + totalQuery: sum(rate(nginx_ingress_controller_request_duration_seconds_count{exported_namespace="immich",ingress="immich-proxy",method!="WATCH"}[{{.window}}])) > 0 OR vector(1) alerting: name: ImmichLatencyAlert labels: category: "latency" annotations: - summary: "Slow responses on 'immich' requests responses. More than 1% take more than 250ms." \ No newline at end of file + summary: "Slow responses on 'immich-proxy' requests responses. More than 1% take more than 250ms." \ No newline at end of file