forked from google/slo-generator
-
Notifications
You must be signed in to change notification settings - Fork 2
/
slo_gae_app_availability.yaml
35 lines (35 loc) · 1.15 KB
/
slo_gae_app_availability.yaml
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
30
31
32
33
34
35
apiVersion: sre.google.com/v2
kind: ServiceLevelObjective
metadata:
name: gae-app-availability
labels:
service_name: gae
feature_name: app
slo_name: availability
spec:
description: Availability of App Engine app
backend: cloud_monitoring
method: good_bad_ratio
exporters:
- cloud_monitoring
service_level_indicator:
filter_good: >
project=${GAE_PROJECT_ID}
metric.type="appengine.googleapis.com/http/server/response_count"
resource.type="gae_app"
( metric.labels.response_code = 429 OR
metric.labels.response_code = 200 OR
metric.labels.response_code = 201 OR
metric.labels.response_code = 202 OR
metric.labels.response_code = 203 OR
metric.labels.response_code = 204 OR
metric.labels.response_code = 205 OR
metric.labels.response_code = 206 OR
metric.labels.response_code = 207 OR
metric.labels.response_code = 208 OR
metric.labels.response_code = 226 OR
metric.labels.response_code = 304 )
filter_valid: >
project=${GAE_PROJECT_ID}
metric.type="appengine.googleapis.com/http/server/response_count"
goal: 0.95