Skip to content

Commit 36d42e5

Browse files
authored
add subcodes to tx-proxy reply code counters (#11862)
1 parent b13bd4a commit 36d42e5

File tree

6 files changed

+307
-197
lines changed

6 files changed

+307
-197
lines changed

ydb/core/tx/columnshard/counters/common/owner.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ class TCommonCountersOwner {
5656
NMonitoring::THistogramPtr GetHistogram(const TString& name, NMonitoring::IHistogramCollectorPtr&& hCollector) const;
5757

5858
TCommonCountersOwner(const TString& module, TIntrusivePtr<::NMonitoring::TDynamicCounters> baseSignals = nullptr);
59+
60+
TCommonCountersOwner(TCommonCountersOwner&& other)
61+
: TCommonCountersOwner(other) {
62+
}
5963
};
6064

6165
class TValueGuard {
Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
11
#include "upload_rows_common_impl.h"
22

3-
4-
namespace NKikimr {
5-
6-
TUploadCounters::TUploadCounters()
7-
: TBase("BulkUpsert")
8-
{
9-
RequestsCount = TBase::GetDeriviative("Requests/Count");
10-
ReplyDuration = TBase::GetHistogram("Replies/Duration", NMonitoring::ExponentialHistogram(15, 2, 10));
11-
12-
RowsCount = TBase::GetDeriviative("Rows/Count");
13-
PackageSizeRecordsByRecords = TBase::GetHistogram("ByRecords/PackageSize/Records", NMonitoring::ExponentialHistogram(15, 2, 10));
14-
PackageSizeCountByRecords = TBase::GetHistogram("ByRecords/PackageSize/Count", NMonitoring::ExponentialHistogram(15, 2, 10));
15-
16-
PreparingDuration = TBase::GetHistogram("Preparing/DurationMs", NMonitoring::ExponentialHistogram(15, 2, 10));
17-
WritingDuration = TBase::GetHistogram("Writing/DurationMs", NMonitoring::ExponentialHistogram(15, 2, 10));
18-
CommitDuration = TBase::GetHistogram("Commit/DurationMs", NMonitoring::ExponentialHistogram(15, 2, 10));
19-
PrepareReplyDuration = TBase::GetHistogram("ToReply/DurationMs", NMonitoring::ExponentialHistogram(15, 2, 10));
20-
21-
const google::protobuf::EnumDescriptor* descriptor = ::Ydb::StatusIds::StatusCode_descriptor();
22-
for (ui32 i = 0; i < (ui32)descriptor->value_count(); ++i) {
23-
auto vDescription = descriptor->value(i);
24-
CodesCount.emplace(vDescription->name(), CreateSubGroup("reply_code", vDescription->name()).GetDeriviative("Replies/Count"));
25-
}
26-
}
27-
28-
}
3+
namespace NKikimr {}

0 commit comments

Comments
 (0)