Skip to content

Instantly share code, notes, and snippets.

@kinnalru
Last active December 6, 2021 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinnalru/a2c83a0561bc1ab0c67e005c197b758d to your computer and use it in GitHub Desktop.
Save kinnalru/a2c83a0561bc1ab0c67e005c197b758d to your computer and use it in GitHub Desktop.
node-exporter configuration
version: "2.3"
services:
x-log: &log
options:
max-size: '50m'
max-file: '3'
driver: json-file
services:
node-exporter:
image: quay.io/prometheus/node-exporter
network_mode: host
pid: host
environment:
- "SERVICE_TAGS=monitoring,hostname=${HOSTNAME}"
volumes:
- "/:/host:ro,rslave"
command:
- "--path.rootfs=/host"
environment:
- "SERVICE_TAGS=monitoring"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment