Add a stack for Prometheus node exporter
This commit is contained in:
parent
38622fb33c
commit
6f302da300
@ -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'
|
17
stack_orchestrator/data/stacks/node-exporter/README.md
Normal file
17
stack_orchestrator/data/stacks/node-exporter/README.md
Normal 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
|
||||||
|
```
|
6
stack_orchestrator/data/stacks/node-exporter/stack.yml
Normal file
6
stack_orchestrator/data/stacks/node-exporter/stack.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
version: "0.1"
|
||||||
|
name: node-exporter
|
||||||
|
repos:
|
||||||
|
containers:
|
||||||
|
pods:
|
||||||
|
- node-exporter
|
Loading…
Reference in New Issue
Block a user