-
Notifications
You must be signed in to change notification settings - Fork 175
/
no-alerts.yml
29 lines (29 loc) · 900 Bytes
/
no-alerts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This example shows a simple service level by implementing a single SLO without alerts.
# It disables page (critical) and ticket (warning) alerts.
# The SLO SLI measures the event errors as the http request respones with the code >=500 and 429.
#
# `sloth generate -i ./examples/no-alerts.yml`
#
version: "prometheus/v1"
service: "myapp"
labels:
owner: "myteam"
slos:
- name: "http-availability"
objective: 99.99
description: "Common SLO based on availability for HTTP request responses."
sli:
events:
error_query: |
sum(
rate(http_request_duration_seconds_count{job="myapp", code=~"(5..|429)"}[{{.window}}])
)
total_query: |
sum(
rate(http_request_duration_seconds_count{job="myapp"}[{{.window}}])
)
alerting:
page_alert:
disable: true
ticket_alert:
disable: true