From 8a17817c61f14a727a1017a5bcd4b1ea82964528 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sat, 18 Jan 2025 13:39:40 +0100 Subject: prometheus: Refine based on input from anarcat https://gitlab.torproject.org/tpo/tpa/team/-/issues/40677 --- internal/manager/manager.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/manager') diff --git a/internal/manager/manager.go b/internal/manager/manager.go index 90f6507..d63d52d 100644 --- a/internal/manager/manager.go +++ b/internal/manager/manager.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "os" + "strings" "time" "gitlab.torproject.org/rgdd/ct/pkg/metadata" @@ -222,9 +223,9 @@ func (mgr *Manager) alertJob() error { return err } for _, alert := range alerts { - mgr.Logger.Noticef("certificate mis-issuance? No allowlisting for %s\n", alert.StoredAt) + mgr.Logger.Noticef("unexpected certificate: no allowlisting for crt_sans=\"%s\", see log_id=\"%x\" log_index=\"%d\"\n", strings.Join(alert.SANs, " "), alert.LogID, alert.LogIndex) } - mgr.Metrics.CertificateAlert(mgr.Storage.Index.Alerting()) + mgr.Metrics.UnexpectedCertificateCount(mgr.Storage.Index.Alerting()) return nil } -- cgit v1.2.3