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:
Alex Vandiver 2021-08-02 20:10:32 -07:00 committed by Tim Abbott
parent aa940bce72
commit 4dd289cb9d
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
[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
autostart=true
autorestart=true
user=prometheus
user=zulip
redirect_stderr=true
stdout_logfile=/var/log/node_exporter.log

View File

@ -22,7 +22,7 @@ class zulip_ops::prometheus::node {
file { "${zulip::common::supervisor_conf_dir}/prometheus_node_exporter.conf":
ensure => file,
require => [
User[prometheus],
User[zulip],
Package[supervisor],
File['/usr/local/bin/node_exporter'],
],