Skip to content

Commit

Permalink
s/probe: added ability to clear registered metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Maslanka <[email protected]>
  • Loading branch information
mmaslankaprv committed Feb 1, 2023
1 parent d2c5836 commit 21d29a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/v/storage/probe.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ class probe {
void set_compaction_ratio(double r) { _compaction_ratio = r; }

int64_t get_batch_parse_errors() const { return _batch_parse_errors; }
/**
* Clears all probe related metrics
*/
void clear_metrics() { _metrics.clear(); }

private:
uint64_t _partition_bytes = 0;
Expand Down

0 comments on commit 21d29a7

Please sign in to comment.