Skip to content

Commit 44fa056

Browse files
vthemelisbeorn7
andauthored
Log when liveness probes fails due to full write queue (#645)
Log when liveness probes fails due to full write queue Signed-off-by: Vasilis Themelis <vdthemelis@gmail.com> Signed-off-by: Björn Rabenstein <github@rabenste.in> Co-authored-by: Björn Rabenstein <github@rabenste.in>
1 parent a43c0df commit 44fa056

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/diskmetricstore.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ func (dms *DiskMetricStore) Healthy() error {
125125
// A pushgateway that cannot be written to should not be
126126
// considered as healthy.
127127
if len(dms.writeQueue) == cap(dms.writeQueue) {
128-
return fmt.Errorf("write queue is full")
128+
err := fmt.Errorf("write queue is full")
129+
level.Warn(dms.logger).Log("msg", err)
130+
return err
129131
}
130132

131133
return nil

0 commit comments

Comments
 (0)