Skip to content

Commit 9f72709

Browse files
authored
Correct configuration of targets (#179)
1 parent ae31b47 commit 9f72709

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

prometheus/prometheus.yml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -36,39 +36,18 @@ scrape_configs:
3636
static_configs:
3737
- targets: ['localhost:9090']
3838

39-
4039
- job_name: 'cadvisor'
4140

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

45-
dns_sd_configs:
46-
- names:
47-
- 'tasks.cadvisor'
48-
type: 'A'
49-
port: 8080
50-
51-
# static_configs:
52-
# - targets: ['cadvisor:8080']
44+
static_configs:
45+
- targets: ['cadvisor:8080']
5346

5447
- job_name: 'node-exporter'
5548

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

59-
dns_sd_configs:
60-
- names:
61-
- 'tasks.node-exporter'
62-
type: 'A'
63-
port: 9100
64-
65-
# - job_name: 'pushgateway'
66-
# scrape_interval: 10s
67-
# dns_sd_configs:
68-
# - names:
69-
# - 'tasks.pushgateway'
70-
# type: 'A'
71-
# port: 9091
72-
73-
# static_configs:
74-
# - targets: ['node-exporter:9100']
52+
static_configs:
53+
- targets: ['node-exporter:9100']

0 commit comments

Comments
 (0)