Skip to content

Commit

Permalink
Correct configuration of targets (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaNiziolek committed Feb 1, 2023
1 parent ae31b47 commit 9f72709
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,39 +36,18 @@ scrape_configs:
static_configs:
- targets: ['localhost:9090']


- job_name: 'cadvisor'

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

dns_sd_configs:
- names:
- 'tasks.cadvisor'
type: 'A'
port: 8080

# static_configs:
# - targets: ['cadvisor:8080']
static_configs:
- targets: ['cadvisor:8080']

- job_name: 'node-exporter'

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

dns_sd_configs:
- names:
- 'tasks.node-exporter'
type: 'A'
port: 9100

# - job_name: 'pushgateway'
# scrape_interval: 10s
# dns_sd_configs:
# - names:
# - 'tasks.pushgateway'
# type: 'A'
# port: 9091

# static_configs:
# - targets: ['node-exporter:9100']
static_configs:
- targets: ['node-exporter:9100']

0 comments on commit 9f72709

Please sign in to comment.