Skip to content

Commit 194e640

Browse files
committedOct 14, 2024
add exporters
1 parent b205a8b commit 194e640

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
 

‎.forgejo/workflows/CD.yml

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
cf)
5555
target_host="cf.lan"
5656
;;
57+
exporters)
58+
target_host="all"
59+
;;
5760
jellyfin)
5861
target_host="jf.lan"
5962
;;

‎docker/exporters/docker-compose.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
services:
3+
node_exporter:
4+
image: quay.io/prometheus/node-exporter:v1.8.2
5+
container_name: node_exporter
6+
command: "--path.rootfs=/host"
7+
ports:
8+
- 9100:9100
9+
pid: host
10+
restart: unless-stopped
11+
volumes:
12+
- /:/host:ro,rslave
13+
14+
cadvisor:
15+
image: gcr.io/cadvisor/cadvisor:v0.50.0
16+
container_name: cadvisor
17+
ports:
18+
- 9101:8080
19+
volumes:
20+
- /:/rootfs:ro
21+
- /run:/run:ro
22+
- /sys:/sys:ro
23+
- /var/lib/docker/:/var/lib/docker:ro
24+
- /dev/disk/:/dev/disk:ro
25+
devices:
26+
- /dev/kmsg
27+
privileged: true
28+
restart: unless-stopped

0 commit comments

Comments
 (0)
Please sign in to comment.