feat: Add Prometheus node exporter
This commit is contained in:
parent
8399dd0da9
commit
2084fd271c
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
node_exporter:
|
||||
image: ${NODE_EXPORTER_IMAGE:-quay.io/prometheus/node-exporter:v1.1.1}
|
||||
container_name: node_exporter
|
||||
command:
|
||||
- '--path.rootfs=/host'
|
||||
network_mode: host
|
||||
pid: host
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 9100
|
||||
volumes:
|
||||
- '/:/host:ro,rslave'
|
Loading…
Reference in New Issue