From 0c7766ec17ea79118b6c999d410f57d33da2d7a1 Mon Sep 17 00:00:00 2001 From: Steven Danna Date: Fri, 7 Jun 2024 15:22:59 +0100 Subject: [PATCH] streamingccl: fix metric name This metric was re-using the name of another metric. Epic: none Release note: None --- docs/generated/metrics/metrics.html | 3 ++- pkg/ccl/streamingccl/logical/metrics.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/generated/metrics/metrics.html b/docs/generated/metrics/metrics.html index 0ee209d3292f..bbfa737418ce 100644 --- a/docs/generated/metrics/metrics.html +++ b/docs/generated/metrics/metrics.html @@ -1330,6 +1330,7 @@ APPLICATIONkv.protectedts.reconciliation.records_removednumber of records removed during reconciliation runs on this nodeCountCOUNTERCOUNTAVGNON_NEGATIVE_DERIVATIVE APPLICATIONlogical_replication.admit_latencyEvent admission latency: a difference between event MVCC timestamp and the time it was admitted into ingestion processorNanosecondsHISTOGRAMNANOSECONDSAVGNONE APPLICATIONlogical_replication.batch_bytesNumber of bytes in a given batchBytesHISTOGRAMBYTESAVGNONE +APPLICATIONlogical_replication.batch_hist_nanosTime spent flushing a batchNanosecondsHISTOGRAMNANOSECONDSAVGNONE APPLICATIONlogical_replication.checkpoint_events_ingestedCheckpoint events ingested by all replication jobsEventsCOUNTERCOUNTAVGNON_NEGATIVE_DERIVATIVE APPLICATIONlogical_replication.commit_latencyEvent commit latency: a difference between event MVCC timestamp and the time it was flushed into disk. If we batch events, then the difference between the oldest event in the batch and flush is recordedNanosecondsHISTOGRAMNANOSECONDSAVGNONE APPLICATIONlogical_replication.distsql_replan_countTotal number of dist sql replanning eventsEventsCOUNTERCOUNTAVGNON_NEGATIVE_DERIVATIVE @@ -1339,7 +1340,7 @@ APPLICATIONlogical_replication.flush_on_sizeNumber of flushes caused by hitting the buffer size limitCountCOUNTERCOUNTAVGNON_NEGATIVE_DERIVATIVE APPLICATIONlogical_replication.flush_on_timeNumber of flushes caused by hitting the time limitCountCOUNTERCOUNTAVGNON_NEGATIVE_DERIVATIVE APPLICATIONlogical_replication.flush_row_countNumber of rows in a given flushRowsHISTOGRAMCOUNTAVGNONE -APPLICATIONlogical_replication.flush_wait_nanosTime spent flushing a batchNanosecondsHISTOGRAMNANOSECONDSAVGNONE +APPLICATIONlogical_replication.flush_wait_nanosTime spenting waiting for an in-progress flushNanosecondsHISTOGRAMNANOSECONDSAVGNONE APPLICATIONlogical_replication.flushesTotal flushes across all replication jobsFlushesCOUNTERCOUNTAVGNON_NEGATIVE_DERIVATIVE APPLICATIONlogical_replication.job_progress_updatesTotal number of updates to the ingestion job progressJob UpdatesCOUNTERCOUNTAVGNON_NEGATIVE_DERIVATIVE APPLICATIONlogical_replication.logical_bytesLogical bytes (sum of keys + values) ingested by all replication jobsBytesCOUNTERBYTESAVGNON_NEGATIVE_DERIVATIVE diff --git a/pkg/ccl/streamingccl/logical/metrics.go b/pkg/ccl/streamingccl/logical/metrics.go index 668885475f2b..b2739a18cce1 100644 --- a/pkg/ccl/streamingccl/logical/metrics.go +++ b/pkg/ccl/streamingccl/logical/metrics.go @@ -121,7 +121,7 @@ var ( Unit: metric.Unit_BYTES, } metaReplicationBatchHistNanos = metric.Metadata{ - Name: "logical_replication.flush_wait_nanos", + Name: "logical_replication.batch_hist_nanos", Help: "Time spent flushing a batch", Measurement: "Nanoseconds", Unit: metric.Unit_NANOSECONDS,