Puppet Class: profile::openstack::codfw1dev::galera::monitoring

Defined in:
modules/profile/manifests/openstack/codfw1dev/galera/monitoring.pp

Overview

Parameters:

  • nodecount (Integer) (defaults to: lookup('profile::openstack::codfw1dev::galera::node_count'))
  • port (Stdlib::Port) (defaults to: lookup('profile::openstack::codfw1dev::galera::listen_port'))
  • test_username (String) (defaults to: lookup('profile::openstack::codfw1dev::galera::test_username'))
  • test_password (String) (defaults to: lookup('profile::openstack::codfw1dev::galera::test_password'))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/profile/manifests/openstack/codfw1dev/galera/monitoring.pp', line 1

class profile::openstack::codfw1dev::galera::monitoring(
    Integer             $nodecount             = lookup('profile::openstack::codfw1dev::galera::node_count'),
    Stdlib::Port        $port                  = lookup('profile::openstack::codfw1dev::galera::listen_port'),
    String              $test_username         = lookup('profile::openstack::codfw1dev::galera::test_username'),
    String              $test_password         = lookup('profile::openstack::codfw1dev::galera::test_password'),
){
    # Bypass haproxy and check the backend mysqld port directly. We want to notice
    #  degraded service even if the haproxy'd front end is holding up.
    monitoring::service { 'galera_cluster':
        description   => 'WMCS Galera Cluster',
        check_command => "check_galera_node!${nodecount}!${port}!${test_username}!${test_password}",
        critical      => true,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
        contact_group => 'wmcs-team,admins',
    }

    monitoring::service { 'galera_db':
        description   => 'WMCS Galera Database',
        check_command => "check_galera_db!${port}!${test_username}!${test_password}",
        critical      => true,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
        contact_group => 'wmcs-team,admins',
    }
}