Skip to content

Commit

Permalink
fixed versions and small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
vegasbrianc committed Jun 21, 2022
1 parent 24f0b36 commit a471a24
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ networks:
services:

prometheus:
image: prom/prometheus:v2.1.0
image: prom/prometheus:v2.36.2
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
Expand All @@ -38,12 +38,14 @@ services:
# - node.hostname == ${HOSTNAME}

node-exporter:
image: prom/node-exporter
image: quay.io/prometheus/node-exporter:latest
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
- /:/host:ro,rslave
command:
- '--path.rootfs=/host'
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- --collector.filesystem.ignored-mount-points
Expand Down
4 changes: 2 additions & 2 deletions docker-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ networks:
services:

prometheus:
image: prom/prometheus
image: prom/prometheus:v2.36.2
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
Expand All @@ -36,7 +36,7 @@ services:
condition: on-failure

node-exporter:
image: prom/node-exporter
image: quay.io/prometheus/node-exporter:latest
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
Expand Down
8 changes: 4 additions & 4 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ scrape_configs:
- job_name: 'prometheus'

# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
scrape_interval: 15s

static_configs:
- targets: ['localhost:9090']
Expand All @@ -40,7 +40,7 @@ scrape_configs:
- job_name: 'cadvisor'

# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
scrape_interval: 15s

dns_sd_configs:
- names:
Expand All @@ -54,8 +54,8 @@ scrape_configs:
- job_name: 'node-exporter'

# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s

scrape_interval: 15s
dns_sd_configs:
- names:
- 'tasks.node-exporter'
Expand Down

0 comments on commit a471a24

Please sign in to comment.