2024-01-31 19:41:44 +01:00
|
|
|
# @summary Prometheus monitoring of a Django frontend and RabbitMQ server.
|
2020-10-13 02:21:30 +02:00
|
|
|
#
|
2024-02-06 21:40:19 +01:00
|
|
|
class kandra::app_frontend_monitoring {
|
2024-02-23 21:10:26 +01:00
|
|
|
include kandra::prometheus::memcached
|
2024-02-06 21:40:19 +01:00
|
|
|
include kandra::prometheus::rabbitmq
|
|
|
|
include kandra::prometheus::uwsgi
|
|
|
|
include kandra::prometheus::process
|
|
|
|
kandra::firewall_allow { 'grok_exporter': port => '9144' }
|
2024-05-22 06:22:22 +02:00
|
|
|
|
2020-10-13 02:21:30 +02:00
|
|
|
file { '/etc/cron.d/rabbitmq-monitoring':
|
2024-05-22 06:22:22 +02:00
|
|
|
ensure => absent,
|
|
|
|
}
|
|
|
|
zulip::cron { 'check-rabbitmq-queue':
|
|
|
|
minute => '*',
|
|
|
|
command => '/home/zulip/deployments/current/scripts/nagios/check-rabbitmq-queue',
|
|
|
|
}
|
|
|
|
zulip::cron { 'check-rabbitmq-consumers':
|
|
|
|
minute => '*',
|
|
|
|
command => '/home/zulip/deployments/current/scripts/nagios/check-rabbitmq-consumers',
|
2020-10-13 02:21:30 +02:00
|
|
|
}
|
|
|
|
}
|