Last active
December 28, 2023 22:10
-
-
Save klyushkov/dc4c24a787626757ece68f85f5692dba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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