From 194e640d2ad46ef0f4b613bbc436b2ecaa9b7f0a Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sun, 13 Oct 2024 23:31:21 -0400 Subject: [PATCH] add exporters --- .forgejo/workflows/CD.yml | 3 +++ docker/exporters/docker-compose.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 docker/exporters/docker-compose.yml diff --git a/.forgejo/workflows/CD.yml b/.forgejo/workflows/CD.yml index 9c58428..e666532 100644 --- a/.forgejo/workflows/CD.yml +++ b/.forgejo/workflows/CD.yml @@ -54,6 +54,9 @@ jobs: cf) target_host="cf.lan" ;; + exporters) + target_host="all" + ;; jellyfin) target_host="jf.lan" ;; diff --git a/docker/exporters/docker-compose.yml b/docker/exporters/docker-compose.yml new file mode 100644 index 0000000..535a360 --- /dev/null +++ b/docker/exporters/docker-compose.yml @@ -0,0 +1,28 @@ +--- +services: + node_exporter: + image: quay.io/prometheus/node-exporter:v1.8.2 + container_name: node_exporter + command: "--path.rootfs=/host" + ports: + - 9100:9100 + pid: host + restart: unless-stopped + volumes: + - /:/host:ro,rslave + + cadvisor: + image: gcr.io/cadvisor/cadvisor:v0.50.0 + container_name: cadvisor + ports: + - 9101:8080 + volumes: + - /:/rootfs:ro + - /run:/run:ro + - /sys:/sys:ro + - /var/lib/docker/:/var/lib/docker:ro + - /dev/disk/:/dev/disk:ro + devices: + - /dev/kmsg + privileged: true + restart: unless-stopped \ No newline at end of file