Hi,

I'm trying to test blackbox exporter with https prob. I'm fairly new to 
prometheus and grafana so I have been going over resources here. 
https://prometheus.io/docs/guides/multi-target-exporter/ 

Does localhost need to be changed to a specific host name? Keep getting 
site can't be reached.

Code from grafana_agent.yml:

scrape_configs:
- job_name: 'blackbox'
metrics_path: /probe
params:
module: [https_2xx]
static_configs:
- targets:
- https://www.google.com/
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: localhost:9115


Logs error: component="scrape manager" scrape_pool=blackbox 
target="http://localhost:9115/probe?module=https_2xx&target=https%3A%2F%2Fwww.google.com%2F";
 
msg="Scrape failed" err="Get 
\"http://localhost:9115/probe?module=https_2xx&target=https%3A%2F%2Fwww.google.com%2F\":
 
dial tcp localhost:9115: connect: connection refused"

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/1fd348a1-95ad-4403-8595-10480d216b3an%40googlegroups.com.

Reply via email to