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

feat(mastodon): Deploy SLO for Mastodon

parent 3d5b9b56
No related branches found
No related tags found
No related merge requests found
...@@ -5,5 +5,6 @@ resources: ...@@ -5,5 +5,6 @@ resources:
- ../../base/mastodon - ../../base/mastodon
- certificate.yaml - certificate.yaml
- mastodon-values.yaml - mastodon-values.yaml
- slo.yaml
patchesStrategicMerge: patchesStrategicMerge:
- database-override.yaml - database-override.yaml
apiVersion: sloth.slok.dev/v1
kind: PrometheusServiceLevel
metadata:
name: requests-mastodon
namespace: mastodon
spec:
service: "mastodon"
slos:
- name: "requests-availability"
objective: 98
description: "Mastodon SLO based on availability for HTTP request responses."
sli:
events:
errorQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="mastodon",ingress="nextcmastodonloud",status=~"(5..|429)"}[{{.window}}]))
totalQuery: sum(rate(nginx_ingress_controller_requests{exported_namespace="mastodon",ingress="mastodon"}[{{.window}}]))
alerting:
name: MastodonHighErrorRate
labels:
category: "availability"
annotations:
summary: "High error rate on 'mastodon' requests responses"
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