Skip to content

Commit

Permalink
Log when liveness probes fails due to full write queue
Browse files Browse the repository at this point in the history
  • Loading branch information
vthemelis committed May 29, 2024
1 parent 118ceab commit e536245
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")
error_msg := "write queue is full"
level.Error(dms.logger).Log("msg", error_msg)
return fmt.Errorf(error_msg)
}

return nil
Expand Down

0 comments on commit e536245

Please sign in to comment.