From 8a31fb55ef76714f617f079b67a573906f9cea77 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sat, 4 Jan 2025 14:22:20 +0100 Subject: prometheus: Add silentct_need_restart --- internal/manager/manager.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/manager/manager.go') diff --git a/internal/manager/manager.go b/internal/manager/manager.go index e302b4f..90f6507 100644 --- a/internal/manager/manager.go +++ b/internal/manager/manager.go @@ -182,6 +182,7 @@ func (mgr *Manager) addLogs(ctx context.Context, logs []metadata.Log) { mgr.Logger.Infof("adding log %s with existing state on disk\n", log.URL) } else if err != nil { mgr.Logger.Noticef("restart required: failed to bootstrap new log %s: %v\n", log.URL, err) + mgr.Metrics.NeedRestart() } else { mgr.Logger.Infof("bootstrapping log %s at next index 0\n", log.URL) } -- cgit v1.2.3