aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorh0pless <h0pless@yandex-team.com>2024-05-23 15:08:28 +0300
committerh0pless <h0pless@yandex-team.com>2024-05-23 15:23:49 +0300
commit07b5efe81522062bf14d695611c8efb33d20eabf (patch)
treec21fb71667d2c592d448892ac4bc9f72b2810637
parent9f108c885d4431f62dc2c5fdc61f1f16caa16566 (diff)
downloadydb-07b5efe81522062bf14d695611c8efb33d20eabf.tar.gz
Fix account metrics breaking when adding a new account
92e7904dddf33b5b8ec117a73c0bfdf1b774441b
-rw-r--r--yt/yt/library/profiling/sensor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/yt/yt/library/profiling/sensor.h b/yt/yt/library/profiling/sensor.h
index 209ac43f41..bd6c61706d 100644
--- a/yt/yt/library/profiling/sensor.h
+++ b/yt/yt/library/profiling/sensor.h
@@ -398,6 +398,11 @@ public:
const TRefCountedPtr& owner,
std::function<double()> reader) const;
+ //! AddProducer is used to batch sensor reports.
+ /*!
+ * If many producers of the same profiler report a metric (whether it's a counter or a gauge) with the same set of tags,
+ * the resulting value registered in the profiler will be a sum of the values reported by each producer.
+ */
void AddProducer(
const TString& prefix,
const ISensorProducerPtr& producer) const;