From b84db808b7fba337adb81ddcc0363b848d722845 Mon Sep 17 00:00:00 2001 From: Rob Best Date: Tue, 22 Sep 2020 18:10:07 +0100 Subject: [PATCH] Fix ssl_verified_cert_not_after typo --- ssl_exporter.go | 2 +- ssl_exporter_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl_exporter.go b/ssl_exporter.go index 6ec3e30..9938b9d 100644 --- a/ssl_exporter.go +++ b/ssl_exporter.go @@ -55,7 +55,7 @@ var ( []string{"chain_no", "serial_no", "issuer_cn", "cn", "dnsnames", "ips", "emails", "ou"}, nil, ) verifiedNotAfter = prometheus.NewDesc( - prometheus.BuildFQName(namespace, "", "verfied_cert_not_after"), + prometheus.BuildFQName(namespace, "", "verified_cert_not_after"), "NotAfter expressed as a Unix Epoch Time for a certificate in the list of verified chains", []string{"chain_no", "serial_no", "issuer_cn", "cn", "dnsnames", "ips", "emails", "ou"}, nil, ) diff --git a/ssl_exporter_test.go b/ssl_exporter_test.go index 4d4917a..5938470 100644 --- a/ssl_exporter_test.go +++ b/ssl_exporter_test.go @@ -810,7 +810,7 @@ func checkVerifiedChainDates(verifiedChains [][]*x509.Certificate, body string) "ou=\",ribbybibbys org,\"", "serial_no=\"" + cert.SerialNumber.String() + "\"", }, ",") + "} " + notAfter - if ok := strings.Contains(body, notAfter); !ok { + if ok := strings.Contains(body, notAfterMetric); !ok { return fmt.Errorf("expected `%s` in: %s", notAfterMetric, body) }