mirror of https://github.com/zulip/zulip.git
puppet: Enable prometheus monitoring of supervisord.
To be able to read the UNIX socket, this requires running node_exporter as zulip, not as prometheus.
This commit is contained in:
parent
aa940bce72
commit
4dd289cb9d
|
@ -1,8 +1,8 @@
|
||||||
[program:prometheus_node_exporter]
|
[program:prometheus_node_exporter]
|
||||||
command=/usr/local/bin/node_exporter --no-collector.hwmon
|
command=/usr/local/bin/node_exporter --collector.supervisord --collector.supervisord.url=unix:///var/run/supervisor.sock --no-collector.hwmon
|
||||||
priority=10
|
priority=10
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
user=prometheus
|
user=zulip
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
stdout_logfile=/var/log/node_exporter.log
|
stdout_logfile=/var/log/node_exporter.log
|
||||||
|
|
|
@ -22,7 +22,7 @@ class zulip_ops::prometheus::node {
|
||||||
file { "${zulip::common::supervisor_conf_dir}/prometheus_node_exporter.conf":
|
file { "${zulip::common::supervisor_conf_dir}/prometheus_node_exporter.conf":
|
||||||
ensure => file,
|
ensure => file,
|
||||||
require => [
|
require => [
|
||||||
User[prometheus],
|
User[zulip],
|
||||||
Package[supervisor],
|
Package[supervisor],
|
||||||
File['/usr/local/bin/node_exporter'],
|
File['/usr/local/bin/node_exporter'],
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue