Skip to content

Commit

Permalink
Reset plot sizes from harvester before setting new values (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Nov 30, 2023
1 parent ba02e21 commit d11b416
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/metrics/harvester.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ const (
func (s *HarvesterServiceMetrics) ProcessGetPlots(plots *rpc.HarvesterGetPlotsResponse) {
plotSize, plotCount := PlotSizeCountHelper(plots.Plots.OrEmpty())

s.plotFilesize.Reset()
s.plotCount.Reset()

// Now we can set the gauges with the calculated total values
// Labels: "size", "type", "compression"
for kSize, cLevels := range plotSize {
Expand Down

0 comments on commit d11b416

Please sign in to comment.