diff options
author | Rasmus Dahlberg <rgdd@glasklarteknik.se> | 2025-01-04 14:22:20 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rgdd@glasklarteknik.se> | 2025-01-04 14:22:20 +0100 |
commit | 8a31fb55ef76714f617f079b67a573906f9cea77 (patch) | |
tree | 8821e2b41c4e32502debb461558d10007fddf0cf /internal/manager/manager.go | |
parent | 2d4c4b7ac260958b73527c5df366ba4944f4cd13 (diff) |
prometheus: Add silentct_need_restart
Diffstat (limited to 'internal/manager/manager.go')
-rw-r--r-- | internal/manager/manager.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) } |