Hi guys,
I currently trying to debug a similar issue. I am also getting EOF only as 
error in debug level from scrape manager. I had the same issue locally with 
curl and LibreSSL on macOS. Updating the curl version to use openSSL fixed 
it. So my assumption it's something related to SSL/TLS. My working curl 
verbose output gives me this in regards to TLS:

* ALPN: offers h2

* ALPN: offers http/1.1

} [5 bytes data]

* TLSv1.3 (OUT), TLS handshake, Client hello (1):

} [512 bytes data]

* TLSv1.3 (IN), TLS handshake, Server hello (2):

{ [193 bytes data]

* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):

} [1 bytes data]

* TLSv1.3 (OUT), TLS handshake, Client hello (1):

} [512 bytes data]

* TLSv1.3 (IN), TLS handshake, Server hello (2):

{ [155 bytes data]

* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):

{ [51 bytes data]

* TLSv1.3 (IN), TLS handshake, Certificate (11):

{ [4943 bytes data]

* TLSv1.3 (IN), TLS handshake, CERT verify (15):

{ [520 bytes data]

* TLSv1.3 (IN), TLS handshake, Finished (20):

{ [52 bytes data]

* TLSv1.3 (OUT), TLS handshake, Finished (20):

} [52 bytes data]

* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384

* ALPN: server accepted h2


but HOW do I get more info from Prometheus?

Thx,

  Markus

On Thursday, 14 July 2022 at 16:25:36 UTC+2 Brian Candler wrote:

> 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/264fb19f-0860-4b55-939d-8812b0bc6281n%40googlegroups.com.

Reply via email to