Correct configuration of targets (#179)
This commit is contained in:
parent
ae31b4743b
commit
9f727093e9
|
@ -36,39 +36,18 @@ scrape_configs:
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['localhost:9090']
|
- targets: ['localhost:9090']
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'cadvisor'
|
- job_name: 'cadvisor'
|
||||||
|
|
||||||
# Override the global default and scrape targets from this job every 5 seconds.
|
# Override the global default and scrape targets from this job every 5 seconds.
|
||||||
scrape_interval: 15s
|
scrape_interval: 15s
|
||||||
|
|
||||||
dns_sd_configs:
|
static_configs:
|
||||||
- names:
|
- targets: ['cadvisor:8080']
|
||||||
- 'tasks.cadvisor'
|
|
||||||
type: 'A'
|
|
||||||
port: 8080
|
|
||||||
|
|
||||||
# static_configs:
|
|
||||||
# - targets: ['cadvisor:8080']
|
|
||||||
|
|
||||||
- job_name: 'node-exporter'
|
- job_name: 'node-exporter'
|
||||||
|
|
||||||
# Override the global default and scrape targets from this job every 5 seconds.
|
# Override the global default and scrape targets from this job every 5 seconds.
|
||||||
scrape_interval: 15s
|
scrape_interval: 15s
|
||||||
|
|
||||||
dns_sd_configs:
|
static_configs:
|
||||||
- names:
|
- targets: ['node-exporter:9100']
|
||||||
- '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']
|
|
||||||
|
|
Loading…
Reference in New Issue