1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'modules/etcd/manifests/v3/monitoring.pp', line 1
class etcd::v3::monitoring(Stdlib::HTTPSurl $endpoint) {
# Just check the local health
file { '/usr/local/bin/check_etcd_health':
ensure => present,
source => 'puppet:///modules/etcd/v3/check_etcd_health.sh',
owner => 'root',
group => 'root',
mode => '0555',
require => Service['etcd'],
}
nrpe::monitor_service{ 'etcd_cluster_health':
description => 'Etcd cluster health',
nrpe_command => "/usr/local/bin/check_etcd_health ${endpoint}",
notes_url => 'https://wikitech.wikimedia.org/wiki/Etcd',
}
}
|