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] [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

View File

@ -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'],
], ],