From 7554eefbb510c7c8dd62e455e9a128045b4d0b9d Mon Sep 17 00:00:00 2001 From: Lyas Spiehler Date: Tue, 15 Nov 2022 13:07:06 -0600 Subject: [PATCH] Add missing probe_tls_version_info and probe_ssl_last_chain_info metrics to STARTTLS TCP probes (#983) probe_tls_version_info and probe_ssl_last_chain_info metrics were missing from STARTTLS TCP probes and added them. Signed-off-by: Lyas Spiehler lspiehler@gmail.com --- prober/tcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prober/tcp.go b/prober/tcp.go index dab140c..de960db 100644 --- a/prober/tcp.go +++ b/prober/tcp.go @@ -192,7 +192,7 @@ func ProbeTCP(ctx context.Context, target string, module config.Module, registry // Get certificate expiry. state := tlsConn.ConnectionState() - registry.MustRegister(probeSSLEarliestCertExpiry, probeSSLLastChainExpiryTimestampSeconds) + registry.MustRegister(probeSSLEarliestCertExpiry, probeTLSVersion, probeSSLLastChainExpiryTimestampSeconds, probeSSLLastInformation) probeSSLEarliestCertExpiry.Set(float64(getEarliestCertExpiry(&state).Unix())) probeTLSVersion.WithLabelValues(getTLSVersion(&state)).Set(1) probeSSLLastChainExpiryTimestampSeconds.Set(float64(getLastChainExpiry(&state).Unix())) -- 2.25.1