prometheus: Consistently import the base class and supervisor, if needed.

This commit is contained in:
Alex Vandiver 2023-03-30 18:02:42 +00:00 committed by Tim Abbott
parent 99ab700c1b
commit c2beb64a79
4 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,8 @@
# 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',

View File

@ -1,6 +1,9 @@
# @summary Prometheus monitoring of redis servers
#
class zulip_ops::prometheus::redis {
include zulip_ops::prometheus::base
include zulip::supervisor
$version = $zulip::common::versions['redis_exporter']['version']
$dir = "/srv/zulip-redis_exporter-${version}"
$bin = "${dir}/redis_exporter"

View File

@ -1,6 +1,9 @@
# @summary Prometheus monitoring of tornado processes
#
class zulip_ops::prometheus::tornado {
include zulip_ops::prometheus::base
include zulip::supervisor
$version = $zulip::common::versions['process_exporter']['version']
$dir = "/srv/zulip-process_exporter-${version}"
$bin = "${dir}/process-exporter"

View File

@ -1,6 +1,9 @@
# @summary Prometheus monitoring of uwsgi servers
#
class zulip_ops::prometheus::uwsgi {
include zulip_ops::prometheus::base
include zulip::supervisor
$version = $zulip::common::versions['uwsgi_exporter']['version']
$dir = "/srv/zulip-uwsgi_exporter-${version}"
$bin = "${dir}/uwsgi_exporter"