Puppet Class: icinga::monitor::toollabs
- Defined in:
- modules/icinga/manifests/monitor/toollabs.pp
Overview
Toolforge end points worth production monitoring
2 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 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 |
# File 'modules/icinga/manifests/monitor/toollabs.pp', line 2
class icinga::monitor::toollabs () {
# Complex checks via a wsgi app running on a cluster for this purpose.
# See profile::toolforge::checker for more details.
$test_entry_host = 'checker.tools.wmflabs.org'
@monitoring::host { $test_entry_host:
host_fqdn => $test_entry_host,
contact_group => 'wmcs-team',
}
# Toolschecker tests are pass/fail based on string return check
$checker="check_http_url_at_address_for_string_with_timeout!300!${test_entry_host}"
monitoring::service { 'tools-checker-labs-dns-private':
description => 'toolschecker: Verify internal DNS from within Tools',
check_command => "${checker}!/dns/private!OK",
host => $test_entry_host,
contact_group => 'wmcs-team',
notes_url => 'https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/Toolschecker',
}
monitoring::service { 'tools-checker-etcd-k8s':
description => 'toolschecker: All k8s etcd nodes are healthy',
check_command => "${checker}!/etcd/k8s!OK",
host => $test_entry_host,
check_interval => 5,
retry_interval => 5,
contact_group => 'wmcs-team-email,wmcs-bots',
notes_url => 'https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/Toolschecker',
}
monitoring::service { 'tools-checker-ldap':
description => 'toolschecker: Test LDAP for query',
check_command => "${checker}!/ldap!OK",
host => $test_entry_host,
contact_group => 'wmcs-team-email,wmcs-bots',
notes_url => 'https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/Toolschecker',
}
monitoring::service { 'tools-checker-dumps':
description => 'toolschecker: Make sure enwiki dumps are not empty',
check_command => "${checker}!/nfs/dumps!OK",
host => $test_entry_host,
notes_url => 'https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/Toolschecker',
contact_group => 'wmcs-team-email',
}
monitoring::service { 'tools-checker-nfs-home':
description => 'toolschecker: NFS read/writeable on labs instances',
check_command => "${checker}!/nfs/home!OK",
host => $test_entry_host,
contact_group => 'wmcs-team',
notes_url => 'https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/Toolschecker',
}
monitoring::service { 'tools-checker-redis':
description => 'toolschecker: Redis set/get',
check_command => "${checker}!/redis!OK",
host => $test_entry_host,
notes_url => 'https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/Toolschecker',
contact_group => 'wmcs-team',
}
monitoring::service { 'tools-checker-self':
description => 'toolschecker service itself needs to return OK',
check_command => "${checker}!/self!OK",
host => $test_entry_host,
contact_group => 'wmcs-team',
notes_url => 'https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/Toolschecker',
}
}
|