Defined Type: query_service::monitor::blazegraph_instance
- Defined in:
- modules/query_service/manifests/monitor/blazegraph_instance.pp
Overview
SPDX-License-Identifier: Apache-2.0 Monitor single instance of Blazegraph
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'modules/query_service/manifests/monitor/blazegraph_instance.pp', line 3
define query_service::monitor::blazegraph_instance (
Stdlib::Port $port,
Stdlib::Port $prometheus_port,
String $username,
String $contact_groups,
) {
nrpe::monitor_service { "Query_Service_Local_Blazegraph_endpoint-${title}":
description => "Blazegraph Port for ${title}",
nrpe_command => "/usr/lib/nagios/plugins/check_tcp -H 127.0.0.1 -p ${port}",
notes_url => 'https://wikitech.wikimedia.org/wiki/Wikidata_query_service/Runbook',
}
nrpe::monitor_service { "${title}-_process":
description => "Blazegraph process (${title})",
nrpe_command => "/usr/lib/nagios/plugins/check_procs -c 1:1 -u ${username} --ereg-argument-array '^java .* --port ${port} .* blazegraph-service-.*war'",
notes_url => 'https://wikitech.wikimedia.org/wiki/Wikidata_query_service/Runbook',
}
}
|