Puppet Class: profile::eventstreams::monitoring
- Defined in:
- modules/profile/manifests/eventstreams/monitoring.pp
Overview
Class profile::eventstreams::monitoring
Sets up a script to check that the $stream_url responds and has data.
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/eventstreams/monitoring.pp', line 4
class profile::eventstreams::monitoring {
$stream_url = 'https://stream.wikimedia.org/v2/stream/recentchange'
nrpe::plugin { 'check_eventstreams':
source => 'puppet:///modules/profile/eventstreams/check_eventstreams.sh',
}
$check_command_config_content = 'define command {
command_name check_eventstreams
command_line $USER4$/check_eventstreams $ARG1$
}'
nagios_common::check_command::config { 'check_eventstreams':
content => $check_command_config_content,
owner => 'root',
group => 'root',
}
monitoring::service { 'eventstreams_endpoint':
description => 'Check if active EventStreams endpoint is delivering messages.',
check_interval => 30,
retries => 2,
contact_group => 'admins,analytics,team-data-platform',
notes_url => 'https://wikitech.wikimedia.org/wiki/Event_Platform/EventStreams/Administration',
check_command => "check_eventstreams!${stream_url}",
migration_task => 'T384427',
}
}
|