Add a stack for prom node exporter and its dashboard in monitoring stack #696

Merged
prathamesh0 merged 2 commits from pm-node-exporter into main 2023-12-21 09:45:03 +00:00
3 changed files with 39 additions and 0 deletions
Showing only changes of commit 6f302da300 - Show all commits

View File

@ -0,0 +1,16 @@
version: '3.8'
services:
node-exporter:
image: prom/node-exporter:latest
restart: unless-stopped
command:
- '--path.rootfs=/host'
- '--collector.systemd'
- '--collector.processes'
network_mode: host
pid: host
ports:
- 9100
volumes:
- '/:/host:ro,rslave'

View File

@ -0,0 +1,17 @@
# node-exporter
## Start the stack
```bash
laconic-so --stack node-exporter deploy up
```
* The host node's metrics can be accessed at `http://localhost:9100/metrics`
## Clean up
Stop the node-exporter running in background:
```bash
laconic-so --stack node-exporter deploy down
```

View File

@ -0,0 +1,6 @@
version: "0.1"
name: node-exporter
repos:
containers:
pods:
- node-exporter