aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/dynamic_counters/counters.h
diff options
context:
space:
mode:
authoralexvru <alexvru@ydb.tech>2023-05-11 22:04:47 +0300
committeralexvru <alexvru@ydb.tech>2023-05-11 22:04:47 +0300
commit5e0a5156b18c5dcc21eb2aa3cd53274135de124f (patch)
treee046120984bec2f5c80ec1b2071973ffd280aaaa /library/cpp/monlib/dynamic_counters/counters.h
parent7df1977a606ccd826561ecb88ee0f35ddf92e0f9 (diff)
downloadydb-5e0a5156b18c5dcc21eb2aa3cd53274135de124f.tar.gz
Remove counters upon VDisk destruction
Diffstat (limited to 'library/cpp/monlib/dynamic_counters/counters.h')
-rw-r--r--library/cpp/monlib/dynamic_counters/counters.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/cpp/monlib/dynamic_counters/counters.h b/library/cpp/monlib/dynamic_counters/counters.h
index 3bf89c5098..b15566c034 100644
--- a/library/cpp/monlib/dynamic_counters/counters.h
+++ b/library/cpp/monlib/dynamic_counters/counters.h
@@ -327,11 +327,12 @@ namespace NMonitoring {
THistogramPtr FindNamedHistogram(const TString& name,const TString& value) const;
void RemoveCounter(const TString &value);
- void RemoveNamedCounter(const TString& name, const TString &value);
+ bool RemoveNamedCounter(const TString& name, const TString &value);
+ void RemoveSubgroupChain(const std::vector<std::pair<TString, TString>>& chain);
TIntrusivePtr<TDynamicCounters> GetSubgroup(const TString& name, const TString& value);
TIntrusivePtr<TDynamicCounters> FindSubgroup(const TString& name, const TString& value) const;
- void RemoveSubgroup(const TString& name, const TString& value);
+ bool RemoveSubgroup(const TString& name, const TString& value);
void ReplaceSubgroup(const TString& name, const TString& value, TIntrusivePtr<TDynamicCounters> subgroup);
// Move all counters from specified subgroup and remove the subgroup.