We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc6222e commit 7ba6db8Copy full SHA for 7ba6db8
compose.yaml
@@ -81,6 +81,20 @@ services:
81
image: prometheuscommunity/postgres-exporter:v0.15.0
82
ports:
83
- "127.0.0.1:9187:9187"
84
+ monitor-node:
85
+ image: prom/node-exporter:v1.8.2
86
+ command:
87
+ - --path.procfs=/host/proc
88
+ - --path.sysfs=/host/sys
89
+ - --path.rootfs=/host
90
+ ports:
91
+ - "127.0.0.1:9100:9100"
92
+ restart: unless-stopped
93
+ volumes:
94
+ - /proc:/host/proc:ro
95
+ - /sys:/host/sys:ro
96
+ - /:/rootfs:ro
97
+ - /:/host:ro
98
site:
99
build:
100
context: site
monitor/prometheus.yml
@@ -11,3 +11,6 @@ scrape_configs:
11
- job_name: 'cadvisor'
12
static_configs:
13
- targets: ['monitor-containers:8080']
14
+ - job_name: 'node-exporter'
15
+ static_configs:
16
+ - targets: ['monitor-node:9100']
0 commit comments