2022-03-19 00:06:39 +01:00
|
|
|
# @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 {
|
2023-03-30 20:02:42 +02:00
|
|
|
include zulip_ops::prometheus::base
|
|
|
|
|
2022-03-19 00:06:39 +01:00
|
|
|
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' }
|
|
|
|
}
|