@@ -0,0 +1,11 @@
|
||||
services:
|
||||
node_exporter:
|
||||
image: quay.io/prometheus/node-exporter:latest
|
||||
container_name: node_exporter
|
||||
command:
|
||||
- '--path.rootfs=/host'
|
||||
network_mode: host
|
||||
pid: host
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- '/:/host:ro,rslave'
|
||||
+3
-5
@@ -1,13 +1,11 @@
|
||||
# prometheus.yml
|
||||
global:
|
||||
scrape_interval: 15s # How frequently to scrape targets by default.
|
||||
scrape_interval: 3s # How frequently to scrape targets by default.
|
||||
evaluation_interval: 15s # How frequently to evaluate rules.
|
||||
|
||||
scrape_configs:
|
||||
# Example: Scrape your custom application/service
|
||||
# Replace 'your_app_name', 'your_app_host', and 'your_app_port'
|
||||
- job_name: 'rest_api'
|
||||
- job_name: node
|
||||
static_configs:
|
||||
- targets: ['localhost:3001']
|
||||
metrics_path: '/metrics'
|
||||
|
||||
- targets: ['localhost:9100']
|
||||
Reference in New Issue
Block a user