Skip to content
Snippets Groups Projects
Verified Commit 8fadb8a0 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(immich): Fix wrong ingress name in SLI metric

parent d7571ffb
No related branches found
No related tags found
No related merge requests found
...@@ -11,14 +11,14 @@ spec: ...@@ -11,14 +11,14 @@ spec:
description: "Immich: SLO based on availability for HTTP request responses." description: "Immich: SLO based on availability for HTTP request responses."
sli: sli:
events: events:
errorQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="immich",ingress="immich",status=~"(5..|429)"}[{{.window}}])) OR vector(0) 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"}[{{.window}}])) > 0 OR vector(1) totalQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="immich",ingress="immich-proxy"}[{{.window}}])) > 0 OR vector(1)
alerting: alerting:
name: ImmichHighErrorRate name: ImmichHighErrorRate
labels: labels:
category: "availability" category: "availability"
annotations: annotations:
summary: "High error rate on 'immich' requests responses" summary: "High error rate on 'immich-proxy' requests responses"
- name: "requests-latency" - name: "requests-latency"
objective: 95 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." 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: ...@@ -28,14 +28,14 @@ spec:
events: events:
errorQuery: | 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: alerting:
name: ImmichLatencyAlert name: ImmichLatencyAlert
labels: labels:
category: "latency" category: "latency"
annotations: annotations:
summary: "Slow responses on 'immich' requests responses. More than 1% take more than 250ms." summary: "Slow responses on 'immich-proxy' requests responses. More than 1% take more than 250ms."
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment