Skip to content

Commit

Permalink
fix: restperf collector causes spikes every poll counter
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss authored and cgrinds committed Nov 29, 2022
1 parent 576fd3f commit 9de690d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/collectors/restperf/restperf.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,10 @@ func (r *RestPerf) PollCounter() (map[string]*matrix.Matrix, error) {

_, err = r.processWorkLoadCounter()
if err != nil {
return r.Matrix, err
return nil, err
}

return r.Matrix, nil
return nil, nil
}

func parseProperties(instanceData gjson.Result, property string) gjson.Result {
Expand Down

0 comments on commit 9de690d

Please sign in to comment.