Skip to content

Commit

Permalink
Log when liveness probes fails due to full write queue (#645)
Browse files Browse the repository at this point in the history
Log when liveness probes fails due to full write queue

Signed-off-by: Vasilis Themelis <[email protected]>
Signed-off-by: Björn Rabenstein <[email protected]>
Co-authored-by: Björn Rabenstein <[email protected]>
  • Loading branch information
vthemelis and beorn7 authored Jun 6, 2024
1 parent a43c0df commit 44fa056
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/diskmetricstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ func (dms *DiskMetricStore) Healthy() error {
// A pushgateway that cannot be written to should not be
// considered as healthy.
if len(dms.writeQueue) == cap(dms.writeQueue) {
return fmt.Errorf("write queue is full")
err := fmt.Errorf("write queue is full")
level.Warn(dms.logger).Log("msg", err)
return err
}

return nil
Expand Down

0 comments on commit 44fa056

Please sign in to comment.