add node exporters
This commit is contained in:
@@ -1,11 +1,17 @@
|
|||||||
---
|
---
|
||||||
services:
|
services:
|
||||||
node_exporter:
|
node-exporter:
|
||||||
image: quay.io/prometheus/node-exporter:v1.9.0
|
image: quay.io/prometheus/node-exporter:v1.9.0
|
||||||
container_name: node_exporter
|
container_name: node-exporter
|
||||||
command:
|
command:
|
||||||
- '--path.rootfs=/host'
|
- '--path.procfs=/host/proc'
|
||||||
|
- '--path.rootfs=/rootfs'
|
||||||
|
- '--path.sysfs=/host/sys'
|
||||||
|
ports:
|
||||||
|
- 9100:9100
|
||||||
pid: host
|
pid: host
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- '/:/host:ro,rslave'
|
- /proc:/host/proc:ro
|
||||||
|
- /sys:/host/sys:ro
|
||||||
|
- /:/rootfs:ro
|
||||||
|
@@ -1,11 +1,17 @@
|
|||||||
---
|
---
|
||||||
services:
|
services:
|
||||||
node_exporter:
|
node-exporter:
|
||||||
image: quay.io/prometheus/node-exporter:v1.9.0
|
image: quay.io/prometheus/node-exporter:v1.9.0
|
||||||
container_name: node_exporter
|
container_name: node-exporter
|
||||||
command:
|
command:
|
||||||
- '--path.rootfs=/host'
|
- '--path.procfs=/host/proc'
|
||||||
|
- '--path.rootfs=/rootfs'
|
||||||
|
- '--path.sysfs=/host/sys'
|
||||||
|
ports:
|
||||||
|
- 9100:9100
|
||||||
pid: host
|
pid: host
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- '/:/host:ro,rslave'
|
- /proc:/host/proc:ro
|
||||||
|
- /sys:/host/sys:ro
|
||||||
|
- /:/rootfs:ro
|
||||||
|
32
hosts/ps10rp/node-exporter/compose.yaml
Normal file
32
hosts/ps10rp/node-exporter/compose.yaml
Normal 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
|
16
hosts/ps10rp/node-exporter/serve.json
Normal file
16
hosts/ps10rp/node-exporter/serve.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"TCP": {
|
||||||
|
"443": {
|
||||||
|
"HTTPS": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Web": {
|
||||||
|
"${TS_CERT_DOMAIN}:443": {
|
||||||
|
"Handlers": {
|
||||||
|
"/metrics": {
|
||||||
|
"Proxy": "http://127.0.0.1:9100"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user