puppet: Add rabbitmq prometheus plugin, and open the firewall.

This commit is contained in:
Alex Vandiver 2022-03-18 19:06:39 -04:00 committed by Tim Abbott
parent bdd2f35d05
commit 6558655fc6
2 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# @summary Munin monitoring of a Django frontend and RabbitMQ server.
#
class zulip_ops::app_frontend_monitoring {
include zulip_ops::prometheus::rabbitmq
include zulip_ops::prometheus::uwsgi
include zulip_ops::munin_node
$munin_plugins = [

View File

@ -0,0 +1,12 @@
# @summary Prometheus monitoring of rabbitmq server. This is done via
# the built-in prometheus plugin which serves on port 15692:
# https://www.rabbitmq.com/prometheus.html
#
class zulip_ops::prometheus::rabbitmq {
exec { 'enable rabbitmq-prometheus':
command => 'rabbitmq-plugins enable rabbitmq_prometheus',
unless => 'grep -q rabbitmq_prometheus /etc/rabbitmq/enabled_plugins',
require => Service['rabbitmq-server'],
}
zulip_ops::firewall_allow { 'rabbitmq': port => '15692' }
}