add node exporters

This commit is contained in:
2025-02-28 19:07:26 -06:00
parent be755f4cf4
commit f7159dff19
4 changed files with 68 additions and 8 deletions

View File

@@ -1,11 +1,17 @@
---
services:
node_exporter:
node-exporter:
image: quay.io/prometheus/node-exporter:v1.9.0
container_name: node_exporter
container_name: node-exporter
command:
- '--path.rootfs=/host'
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
ports:
- 9100:9100
pid: host
restart: always
volumes:
- '/:/host:ro,rslave'
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro

View File

@@ -1,11 +1,17 @@
---
services:
node_exporter:
node-exporter:
image: quay.io/prometheus/node-exporter:v1.9.0
container_name: node_exporter
container_name: node-exporter
command:
- '--path.rootfs=/host'
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
ports:
- 9100:9100
pid: host
restart: always
volumes:
- '/:/host:ro,rslave'
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro

View File

@@ -0,0 +1,32 @@
---
services:
tailscale-node-exporter:
image: ghcr.io/tailscale/tailscale:v1.80.0
container_name: tailscale-node-exporter
cap_add:
- net_admin
- sys_module
environment:
- TS_STATE_DIR=/var/lib/tailscale
- TS_ENABLE_METRICS=true
- TS_HOSTNAME=node-exporter-ps10rp
network_mode: service:node-exporter
restart: always
volumes:
- tailscale:/var/lib/tailscale
devices:
- /dev/net/tun:/dev/net/tun
node-exporter:
image: quay.io/prometheus/node-exporter:v1.9.0
container_name: node-exporter
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
pid: host
restart: always
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro

View File

@@ -0,0 +1,16 @@
{
"TCP": {
"443": {
"HTTPS": true
}
},
"Web": {
"${TS_CERT_DOMAIN}:443": {
"Handlers": {
"/metrics": {
"Proxy": "http://127.0.0.1:9100"
}
}
}
}
}