ribbybibby / ssl_exporter

Exports Prometheus metrics for TLS certificates
Apache License 2.0
525 stars 99 forks source link

Add more information to error logs #49

Closed ribbybibby closed 4 years ago

ribbybibby commented 4 years ago
ERRO[0004] error=x509: certificate signed by unknown authority target=untrusted-root.badssl.com:443 prober=tcp timeout=10s  source="ssl_exporter.go:78"
ERRO[0007] error=x509: certificate has expired or is not yet valid: current time 2020-09-04T07:33:57+01:00 is after 2015-04-12T23:59:59Z target=expired.badssl.com:443 prober=tcp timeout=10s  source="ssl_exporter.go:78"
ERRO[0033] error=x509: certificate has expired or is not yet valid: current time 2020-09-04T07:34:23+01:00 is after 2020-08-04T23:59:59Z target=aaaaaaaaa.com:443 prober=tcp timeout=10s  source="ssl_exporter.go:78"
ERRO[0039] error=dial tcp 104.171.23.70:443: connect: connection refused target=aaaaaaaaaa.com:443 prober=tcp timeout=10s  source="ssl_exporter.go:78"