-
Notifications
You must be signed in to change notification settings - Fork 78
/
slo_gae_app_availability.yaml
37 lines (37 loc) · 1.17 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
36
37
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_mql
method: good_bad_ratio
exporters:
- cloud_monitoring
service_level_indicator:
filter_good: >
fetch gae_app
| metric 'appengine.googleapis.com/http/server/response_count'
| filter resource.project_id == '${GAE_PROJECT_ID}'
| filter
metric.response_code == 429
|| metric.response_code == 200
|| metric.response_code == 201
|| metric.response_code == 202
|| metric.response_code == 203
|| metric.response_code == 204
|| metric.response_code == 205
|| metric.response_code == 206
|| metric.response_code == 207
|| metric.response_code == 208
|| metric.response_code == 226
|| metric.response_code == 304
filter_valid: >
fetch gae_app
| metric 'appengine.googleapis.com/http/server/response_count'
| filter resource.project_id == '${GAE_PROJECT_ID}'
goal: 0.95