2020-10-13 02:21:30 +02:00
|
|
|
# @summary Munin monitoring of a Django frontend and RabbitMQ server.
|
|
|
|
#
|
|
|
|
class zulip_ops::app_frontend_monitoring {
|
2022-03-19 00:06:39 +01:00
|
|
|
include zulip_ops::prometheus::rabbitmq
|
2022-01-01 05:00:17 +01:00
|
|
|
include zulip_ops::prometheus::uwsgi
|
2022-03-18 20:46:29 +01:00
|
|
|
include zulip_ops::prometheus::tornado
|
2022-03-19 23:48:00 +01:00
|
|
|
zulip_ops::firewall_allow { 'grok_exporter': port => '9144' }
|
2020-10-13 02:21:30 +02:00
|
|
|
include zulip_ops::munin_node
|
|
|
|
$munin_plugins = [
|
|
|
|
'rabbitmq_connections',
|
|
|
|
'rabbitmq_consumers',
|
|
|
|
'rabbitmq_messages',
|
|
|
|
'rabbitmq_messages_unacknowledged',
|
|
|
|
'rabbitmq_messages_uncommitted',
|
|
|
|
'rabbitmq_queue_memory',
|
|
|
|
'zulip_send_receive_timing',
|
|
|
|
]
|
|
|
|
zulip_ops::munin_plugin { $munin_plugins: }
|
|
|
|
|
|
|
|
file { '/etc/cron.d/rabbitmq-monitoring':
|
|
|
|
ensure => file,
|
|
|
|
require => Package[rabbitmq-server],
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0644',
|
|
|
|
source => 'puppet:///modules/zulip/cron.d/rabbitmq-monitoring',
|
|
|
|
}
|
|
|
|
}
|