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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'modules/profile/manifests/pyrra/filesystem/slos/editing.pp', line 4
class profile::pyrra::filesystem::slos::editing {
#lint:ignore:arrow_alignment
profile::pyrra::filesystem::slos::istio { 'citoid':
team => 'sre',
slo_availability_target => '99.5',
slo_latency_target => '90.0',
latency_max_seconds_bucket => '30000',
enable_alerts => false,
revision => 1,
}
profile::pyrra::filesystem::slo { 'wikikube-citoid-success-ratio':
sloname => 'citoid-success-ratio',
team => 'sre',
service => 'citoid',
revision => 2,
spec => {
'alerting' => {
'burnrates' => false
},
'target' => '85.0',
'window' => '4w',
'indicator' => {
'ratio' => {
'errors' => {
'metric' => 'citoid_api_user_agent_total{prometheus="k8s", type="mediawikijs", status!~"(2|3).."}',
},
'total' => {
'metric' => 'citoid_api_user_agent_total{prometheus="k8s", type="mediawikijs"}',
},
},
},
},
}
pyrra::filesystem::config { 'edit-check-pre-save-checks-ratio.yaml':
content => to_yaml( {
'apiVersion' => 'pyrra.dev/v1alpha1',
'kind' => 'ServiceLevelObjective',
'metadata' => {
'name' => 'edit-check-pre-save-checks-ratio',
'namespace' => 'pyrra-o11y',
'labels' => {
'pyrra.dev/team' => 'sre',
'pyrra.dev/service' => 'edit-check',
},
},
'spec' => {
'alerting' => {
'burnrates' => false
},
'target' => '99.0',
'window' => '4w',
'indicator' => {
'ratio' => {
'errors' => {
'metric' => 'editcheck_sli_presavechecks_shown_vs_available_total',
},
'total' => {
'metric' => 'editcheck_sli_presavechecks_available_total',
},
},
},
},
})
}
#lint:endignore
}
|