Puppet Class: zuul::monitoring::server

Defined in:
modules/zuul/manifests/monitoring/server.pp

Overview

Class zuul::monitoring::server

Icinga monitoring for the Zuul server

Parameters

ensure

Parameters:

  • ensure (Any) (defaults to: present)


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
# File 'modules/zuul/manifests/monitoring/server.pp', line 9

class zuul::monitoring::server (
    $ensure = present,
) {
    validate_ensure($ensure)

    # only monitor these on the active master host
    # zuul service will be stopped on the warm standby server
    nrpe::monitor_service { 'zuul':
        ensure        => $ensure,
        description   => 'zuul_service_running',
        contact_group => 'contint',
        # Zuul has a main process and a fork which is the gearman
        # server. Thus we need two process running.
        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -w 2:2 -c 2:2 --ereg-argument-array 'bin/zuul-server'",
        notes_url     => 'https://www.mediawiki.org/wiki/Continuous_integration/Zuul',
    }

    nrpe::monitor_service { 'zuul_gearman':
        ensure        => $ensure,
        description   => 'zuul_gearman_service',
        contact_group => 'contint',
        nrpe_command  => '/usr/lib/nagios/plugins/check_tcp -H 127.0.0.1 -p 4730 --timeout=2',
        notes_url     => 'https://www.mediawiki.org/wiki/Continuous_integration/Zuul',
    }

    monitoring::graphite_threshold{ 'zuul_gearman_wait_queue':
        ensure          => $ensure,
        description     => 'Work requests waiting in Zuul Gearman server',
        dashboard_links => ['https://grafana.wikimedia.org/dashboard/db/zuul-gearman?panelId=10&fullscreen&orgId=1'],
        metric          => 'zuul.geard.queue.waiting',
        contact_group   => 'contint',
        from            => '10min',
        percentage      => 100,
        warning         => 90,
        critical        => 150,
        notes_link      => 'https://www.mediawiki.org/wiki/Continuous_integration/Zuul',
    }
}