From c495d4be2b579ff7aa35193d936f2cc2d8820e4e Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Wed, 10 Jul 2024 15:15:12 +0300 Subject: [PATCH] Removed unused per_protocol_counters logic --- src/metrics/clickhouse.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/metrics/clickhouse.cpp b/src/metrics/clickhouse.cpp index 57b4aa8..880a8cd 100644 --- a/src/metrics/clickhouse.cpp +++ b/src/metrics/clickhouse.cpp @@ -873,10 +873,8 @@ push_network_traffic_counters_to_clickhouse(clickhouse::Client* clickhouse_metri register_clickhouse_network_metrics_block(block, metrics); - // Register these fields only if we have enabled per protocol metrics - if (per_protocol_counters) { - register_clickhouse_per_protocol_metrics_block(block, metrics.pp); - } + // Per protocol metrics + register_clickhouse_per_protocol_metrics_block(block, metrics.pp); clickhouse_metrics_writes_total++;