Puppet Class: profile::query_service::monitor::categories

Defined in:
modules/profile/manifests/query_service/monitor/categories.pp

Overview

SPDX-License-Identifier: Apache-2.0 Monitor external blazegraph (categories) settings



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
# File 'modules/profile/manifests/query_service/monitor/categories.pp', line 3

class profile::query_service::monitor::categories {
    ensure_packages('python3-requests')
    file { '/usr/lib/nagios/plugins/check_categories.py':
        ensure => absent,
    }

    nrpe::plugin { 'check_categories.py':
        source => 'puppet:///modules/query_service/nagios/check_categories.py',
    }

    # categories are updated weekly, this is a low frequency check
    nrpe::monitor_service { 'Categories_Ping':
        description    => 'Categories endpoint',
        nrpe_command   => '/usr/local/lib/nagios/plugins/check_categories.py --ping',
        check_interval => 720, # every 6 hours
        retry_interval => 60,  # retry after 1 hour
        notes_url      => 'https://wikitech.wikimedia.org/wiki/Wikidata_query_service',
    }

    nrpe::monitor_service { 'Categories_Lag':
        description    => 'Categories update lag',
        nrpe_command   => '/usr/local/lib/nagios/plugins/check_categories.py --lag',
        check_interval => 720, # every 6 hours
        retry_interval => 60,  # retry after 1 hour
        notes_url      => 'https://wikitech.wikimedia.org/wiki/Wikidata_query_service/Runbook#Categories_update_lag',
    }

}