Puppet Class: profile::pyrra::filesystem::slos::abstract_wikipedia

Defined in:
modules/profile/manifests/pyrra/filesystem/slos/abstract_wikipedia.pp

Overview



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
# File 'modules/profile/manifests/pyrra/filesystem/slos/abstract_wikipedia.pp', line 4

class profile::pyrra::filesystem::slos::abstract_wikipedia {
    # Backend API combined latency-availability SLO: The percentage of all requests to the backend
    # API that complete within the 10s threshold and receive a non-error response, defined as HTTP
    # status code 200 or 4xx.
    profile::pyrra::filesystem::slo { 'wikifunctions-backend-combined':
        sloname  => 'wikifunctions-backend-combined',
        team     => 'abstract-wikipedia',
        service  => 'wikifunctions',
        revision => 1,
        spec     => {
            'alerting'  => {
                'burnrates' => false
            },
            'target'    => '98.5',
            'window'    => '4w',
            'indicator' => {
                'latency' => {
                    'success' => {
                        'metric' => 'mediawiki_WikiLambda_mw_to_orchestrator_api_call_seconds_bucket{status=~"200|4..", le="10"}',
                    },
                    'total'   => {
                        'metric' => 'mediawiki_WikiLambda_mw_to_orchestrator_api_call_seconds_count',
                    },
                },
            },
        }
    }
}