mirror of https://github.com/zulip/zulip.git
prometheus: Consistently import the base class and supervisor, if needed.
This commit is contained in:
parent
99ab700c1b
commit
c2beb64a79
|
@ -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',
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue