global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
rule_files:
- "targets.rules"
- "host.rules"
- "containers.rules"
scrape_configs:
# scrape config for node exporter + cadvisor
- job_name: 'nodeexporter'
scrape_interval: 15s
scrape_timeout: 20s
static_configs:
- targets: ['nodeexporter:9100']
- job_name: 'cadvisor'
scrape_interval: 15s
scrape_timeout: 20s
static_configs:
- targets: ['cadvisor:8080']
- job_name: 'prometheus'
scrape_interval: 15s
scrape_timeout: 20s
static_configs:
- targets: ['localhost:9090']
- job_name: 'adapt-docs'
scrape_interval: 15s
scrape_timeout: 20s
metrics_path: /probe
params:
module: [http_2xx]
static_configs:
- targets:
- adapt-docs
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox:9115 # Blackbox exporter.
Blackbox config:
modules:
http_2xx:
prober: http
timeout: 5s
http:
valid_http_versions: ["HTTP/1.1", "HTTP/2"]
valid_status_codes: [] # Defaults to 2xx
method: GET
preferred_ip_protocol: "ip4" # defaults to "ip6"
I think your target is wrong.
Does `adapt-docs` resolve correctly?
Can you curl that url from the machine/container running the blackbox exporter?
Nicholas
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/81554130-c2d6-430d-8482-f9c1a71d49a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm not sure how to help you with the container problem.
Is adapt-docs the correct domain name?
Shouldn't it be something like www.adapt-docs.com?
Nicholas
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/84d6723d-e020-4dea-a2b2-42565f0d35c5%40googlegroups.com.