diff options
author | alexnick <alexnick@ydb.tech> | 2023-05-12 10:32:07 +0300 |
---|---|---|
committer | alexnick <alexnick@ydb.tech> | 2023-05-12 10:32:07 +0300 |
commit | 09a0e89ee46154785b0acf72f3aa760f4350d21e (patch) | |
tree | 8b39362c36343c9ea2c38a690e0e373f62ef8438 | |
parent | bb9187654c4ea19cbbac471a7d9ba158fa0ebe99 (diff) | |
download | ydb-09a0e89ee46154785b0acf72f3aa760f4350d21e.tar.gz |
remove duplicate metrics
remove duplicate metrics
-rw-r--r-- | ydb/core/http_proxy/custom_metrics.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/ydb/core/http_proxy/custom_metrics.h b/ydb/core/http_proxy/custom_metrics.h index 7ae34b24ff..75b6d84aa9 100644 --- a/ydb/core/http_proxy/custom_metrics.h +++ b/ydb/core/http_proxy/custom_metrics.h @@ -42,21 +42,11 @@ static const bool setStreamPrefix{true}; template <> void FillInputCustomMetrics<PutRecordsRequest>(const PutRecordsRequest& request, const THttpRequestContext& httpContext, const TActorContext& ctx) { - /* deprecated metric: */ ctx.Send(MakeMetricsServiceID(), - new TEvServerlessProxy::TEvCounter{request.records_size(), true, true, - BuildLabels("", httpContext, "stream.incoming_records_per_second", setStreamPrefix) - }); - i64 bytes = 0; for (auto& rec : request.records()) { bytes += rec.data().size() + rec.partition_key().size() + rec.explicit_hash_key().size(); } - /* deprecated metric */ ctx.Send(MakeMetricsServiceID(), - new TEvServerlessProxy::TEvCounter{bytes, true, true, - BuildLabels("", httpContext, "stream.incoming_bytes_per_second", setStreamPrefix) - }); - /* deprecated metric: */ ctx.Send(MakeMetricsServiceID(), new TEvServerlessProxy::TEvCounter{bytes, true, true, BuildLabels("", httpContext, "stream.put_records.bytes_per_second", setStreamPrefix) @@ -72,10 +62,6 @@ template <> void FillInputCustomMetrics<PutRecordRequest>(const PutRecordRequest& request, const THttpRequestContext& httpContext, const TActorContext& ctx) { /* deprecated metric: */ ctx.Send(MakeMetricsServiceID(), new TEvServerlessProxy::TEvCounter{1, true, true, - BuildLabels("", httpContext, "stream.incoming_records_per_second", setStreamPrefix) - }); - /* deprecated metric: */ ctx.Send(MakeMetricsServiceID(), - new TEvServerlessProxy::TEvCounter{1, true, true, BuildLabels("", httpContext, "stream.put_record.records_per_second", setStreamPrefix) }); ctx.Send(MakeMetricsServiceID(), @@ -87,10 +73,6 @@ void FillInputCustomMetrics<PutRecordRequest>(const PutRecordRequest& request, c /* deprecated metric: */ ctx.Send(MakeMetricsServiceID(), new TEvServerlessProxy::TEvCounter{bytes, true, true, - BuildLabels("", httpContext, "stream.incoming_bytes_per_second", setStreamPrefix) - }); - /* deprecated metric: */ ctx.Send(MakeMetricsServiceID(), - new TEvServerlessProxy::TEvCounter{bytes, true, true, BuildLabels("", httpContext, "stream.put_record.bytes_per_second", setStreamPrefix) }); ctx.Send(MakeMetricsServiceID(), |