Hi all,
I've been struggling for an hour to pass additional arguments to the Prometheus
The help for
The rc script says to use the _args variable to specify arguments to node_exporter:
Adding the line:
to /etc/rc.conf and running
Can someone please help me format the line in /etc/rc.conf so that I can start the daemon?
Thanks,
Scott
I've been struggling for an hour to pass additional arguments to the Prometheus
node_exporter
daemon in /etc/rc.conf.The help for
node_exporter
provides an example argument (mount points to ignore) as:
Code:
--collector.filesystem.ignored-mount-points="^/(dev)($|/)"
Regexp of mount points to ignore for filesystem collector.
Code:
# node_exporter_args (string): Set extra arguments to pass to node_exporter
# Default is "".
Adding the line:
Code:
node_exporter_args="--collector.filesystem.ignored-mount-points=\"^/(dev)($|/)\""
sh -x /usr/local/etc/rc.d/node_exporter start
results in:
Code:
+ limits -C daemon su -m nobody -c 'sh -c "/usr/sbin/daemon -f -p /var/run/node_exporter.pid -T node_exporter /usr/bin/env /usr/local/bin/node_exporter --web.listen-address=:9100 --collector.textfile.directory=/var/tmp/node_exporter --collector.filesystem.ignored-mount-points="^/(dev)($|/)""'
Illegal variable name.
Can someone please help me format the line in /etc/rc.conf so that I can start the daemon?
Thanks,
Scott