The straightforward way to debug this by doing a scrape by hand: it's just 
a HTTP request.

curl -g 'https://blah.local:9126/metrics'

Add flag '-v' for more debugging if required (e.g. response headers may 
give you an extra clue).  Once you're able to scrape the exporter with 
curl, then prometheus should be able to talk to it too.

Given that it's https, if you get a certificate error then you can add flag 
'-k' to skip certificate verification.  If that turns out to be the 
problem, then there are extra flags you can pass to curl, e.g. to pass the 
CA root certificate (if the target's cert was signed by a CA that's not in 
the system trust store).  Once you've got all that working, you can make 
the corresponding changes to prometheus' tls_config.

On Thursday, 14 July 2022 at 14:46:24 UTC+1 [email protected] wrote:

> Hello Team, 
>
> I have promethus installed on kubernet and add scraping targets from cmdb 
> using http_sd_config. 
>
> I am getting EOF error while i add targets. And it’s show down. 
>
> Can someone please help me what is the issue. 
>
> For your reference attached screenshot of error. 
>
> Thanks and regards
> Ritesh patel 
>

-- 
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/a208fafc-2d07-4f2c-bf0f-defa2354bc48n%40googlegroups.com.

Reply via email to