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

fix: Prevent division by 0 for other SLOs

parent 0d97c160
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ spec:
sli:
events:
errorQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="mastodon",ingress="mastodon",status=~"(5..|429)"}[{{.window}}]))
totalQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="mastodon",ingress="mastodon"}[{{.window}}]))
totalQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="mastodon",ingress="mastodon"}[{{.window}}])) > 0 OR vector(1)
alerting:
name: MastodonHighErrorRate
labels:
......@@ -32,7 +32,7 @@ spec:
-
sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{exported_namespace="mastodon",ingress="mastodon",le="0.25",verb!="WATCH"}[{{.window}}]))
)
totalQuery: sum(rate(nginx_ingress_controller_request_duration_seconds_count{exported_namespace="mastodon",ingress="mastodon",method!="WATCH"}[{{.window}}]))
totalQuery: sum(rate(nginx_ingress_controller_request_duration_seconds_count{exported_namespace="mastodon",ingress="mastodon",method!="WATCH"}[{{.window}}])) > 0 OR vector(1)
alerting:
name: MastodonLatencyAlert
labels:
......
......@@ -12,7 +12,7 @@ spec:
sli:
events:
errorQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="matrix",ingress="matrix-synapse",status=~"(5..|429)"}[{{.window}}]))
totalQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="matrix",ingress="matrix-synapse"}[{{.window}}]))
totalQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="matrix",ingress="matrix-synapse"}[{{.window}}])) > 0 OR vector(1)
alerting:
name: MatrixHighErrorRate
labels:
......
......@@ -12,7 +12,7 @@ spec:
sli:
events:
errorQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="nextcloud",ingress="nextcloud",status=~"(5..|429)"}[{{.window}}]))
totalQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="nextcloud",ingress="nextcloud"}[{{.window}}]))
totalQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="nextcloud",ingress="nextcloud"}[{{.window}}])) > 0 OR vector(1)
alerting:
name: NextcloudHighErrorRate
labels:
......
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