ribbybibby / ssl_exporter

Exports Prometheus metrics for TLS certificates
Apache License 2.0
520 stars 97 forks source link

Output of ssl_exporter shown in scientifc format #6

Closed ScrumpyJack closed 5 years ago

ScrumpyJack commented 5 years ago

Do you know why I would be getting epoch time converted into scientific notation?

ssl_cert_not_after{issuer_cn="DigiCert Global Root CA",serial_no="xxx"} 1.6782768e+09
ssl_cert_not_after{issuer_cn="DigiCert SHA2 Secure Server CA",serial_no="xxx"} 1.598616e+09
ribbybibby commented 5 years ago

I don't know why exactly but the representation of the value comes from the client library and is understood correctly by Prometheus, so it shouldn't be an issue.

I've always assumed that it happens when a number exceeds a certain size.

ScrumpyJack commented 5 years ago

I'll try scraping and see what I get in Prometheus

ribbybibby commented 5 years ago

@ScrumpyJack how did you get on?