Skip to content

Instantly share code, notes, and snippets.

@questionlp
Created October 12, 2023 00:19
Show Gist options
  • Select an option

  • Save questionlp/3f0f3b117cbda0ccbeb02292b30e2340 to your computer and use it in GitHub Desktop.

Select an option

Save questionlp/3f0f3b117cbda0ccbeb02292b30e2340 to your computer and use it in GitHub Desktop.
node_exporter Service File for TrueNAS SCALE
[Unit]
Description=Node Exporter
After=network-online.target
[Service]
User=node_exporter
Group=node_exporter
Type=simple
ExecStart=/usr/bin/node_exporter \
--collector.filesystem.fs-types-exclude="^(sys|proc|auto|squash|ns|rpc_pipe|tmp|n)(fs|fs4)$" \
--collector.filesystem.mount-points-exclude="^(main\/.system).*$"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment