Add leaf certificate details in probe_tls_certificate_info metric (#943)
authorDaniel Jolly <daniel@danieljolly.com>
Tue, 9 Aug 2022 10:17:33 +0000 (06:17 -0400)
committerGitHub <noreply@github.com>
Tue, 9 Aug 2022 10:17:33 +0000 (15:47 +0530)
commitcc533f125b41f65719cc00f25c54c8191515b9d9
treeffc8d7b8239a13e2af6ca6f07f204bee382b81c1
parent0bbd65d1264722f7afb87a72ec4128b9214e5840
Add leaf certificate details in probe_tls_certificate_info metric (#943)

Add left certificate's "subject", "issuer", "subjectalternative" labels in `probe_tls_certificate_info` metric.

See relevent discussion in #892

Co-authored-by: Daniel Jolly <code@danieljolly.com>
prober/grpc.go
prober/http.go
prober/tcp.go
prober/tls.go
prober/utils_test.go