zulip/puppet/zulip_ops/manifests/prometheus/rabbitmq.pp

15 lines
542 B
Puppet

# @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 {
include zulip_ops::prometheus::base
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' }
}