Skip to content

Instantly share code, notes, and snippets.

@klyushkov
Last active December 28, 2023 22:10
Show Gist options
  • Select an option

  • Save klyushkov/dc4c24a787626757ece68f85f5692dba to your computer and use it in GitHub Desktop.

Select an option

Save klyushkov/dc4c24a787626757ece68f85f5692dba to your computer and use it in GitHub Desktop.
vi /etc/systemd/system/node_exporter.service
--collector.systemd.unit-whitelist='(zookeeper|ssh).service' \
systemctl daemon-reload
systemctl restart node_exporter
/etc/default/prometheus-node-exporter
ARGS="--collector.systemd.unit-whitelist=\"(ssh).service\""
or
ARGS="--collector.systemd.unit-include==\"(ssh).service\""
systemctl restart prometheus-node-exporter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment