From 5597682909971c5d61e4a54ed4ec038debab4175 Mon Sep 17 00:00:00 2001 From: Shichao Nie Date: Mon, 5 Feb 2024 11:17:08 +0800 Subject: [PATCH] refactor(s3stream): remove _total suffix for counter metrics for unification Signed-off-by: Shichao Nie --- .../s3/metrics/S3StreamMetricsConstant.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/s3stream/src/main/java/com/automq/stream/s3/metrics/S3StreamMetricsConstant.java b/s3stream/src/main/java/com/automq/stream/s3/metrics/S3StreamMetricsConstant.java index 18242c0f9..a96bda3a8 100644 --- a/s3stream/src/main/java/com/automq/stream/s3/metrics/S3StreamMetricsConstant.java +++ b/s3stream/src/main/java/com/automq/stream/s3/metrics/S3StreamMetricsConstant.java @@ -63,16 +63,16 @@ public class S3StreamMetricsConstant { TimeUnit.MINUTES.toNanos(5) ); - public static final String UPLOAD_SIZE_METRIC_NAME = "upload_size_total"; - public static final String DOWNLOAD_SIZE_METRIC_NAME = "download_size_total"; - public static final String OPERATION_COUNT_METRIC_NAME = "operation_count_total"; + public static final String UPLOAD_SIZE_METRIC_NAME = "upload_size"; + public static final String DOWNLOAD_SIZE_METRIC_NAME = "download_size"; + public static final String OPERATION_COUNT_METRIC_NAME = "operation_count"; public static final String OPERATION_LATENCY_METRIC_NAME = "operation_latency"; - public static final String OBJECT_COUNT_METRIC_NAME = "object_count_total"; + public static final String OBJECT_COUNT_METRIC_NAME = "object_count"; public static final String OBJECT_STAGE_COST_METRIC_NAME = "object_stage_cost"; public static final String OBJECT_UPLOAD_SIZE_METRIC_NAME = "object_upload_size"; public static final String OBJECT_DOWNLOAD_SIZE_METRIC_NAME = "object_download_size"; - public static final String NETWORK_INBOUND_USAGE_METRIC_NAME = "network_inbound_usage_total"; - public static final String NETWORK_OUTBOUND_USAGE_METRIC_NAME = "network_outbound_usage_total"; + public static final String NETWORK_INBOUND_USAGE_METRIC_NAME = "network_inbound_usage"; + public static final String NETWORK_OUTBOUND_USAGE_METRIC_NAME = "network_outbound_usage"; public static final String NETWORK_INBOUND_AVAILABLE_BANDWIDTH_METRIC_NAME = "network_inbound_available_bandwidth"; public static final String NETWORK_OUTBOUND_AVAILABLE_BANDWIDTH_METRIC_NAME = "network_outbound_available_bandwidth"; public static final String NETWORK_INBOUND_LIMITER_QUEUE_SIZE_METRIC_NAME = "network_inbound_limiter_queue_size"; @@ -90,8 +90,8 @@ public class S3StreamMetricsConstant { public static final String AVAILABLE_S3_INFLIGHT_READ_QUOTA_METRIC_NAME = "available_s3_inflight_read_quota"; public static final String AVAILABLE_S3_INFLIGHT_WRITE_QUOTA_METRIC_NAME = "available_s3_inflight_write_quota"; public static final String INFLIGHT_WAL_UPLOAD_TASKS_COUNT_METRIC_NAME = "inflight_wal_upload_tasks_count"; - public static final String COMPACTION_READ_SIZE_METRIC_NAME = "compaction_read_size_total"; - public static final String COMPACTION_WRITE_SIZE_METRIC_NAME = "compaction_write_size_total"; + public static final String COMPACTION_READ_SIZE_METRIC_NAME = "compaction_read_size"; + public static final String COMPACTION_WRITE_SIZE_METRIC_NAME = "compaction_write_size"; public static final AttributeKey LABEL_OPERATION_TYPE = AttributeKey.stringKey("operation_type"); public static final AttributeKey LABEL_OPERATION_NAME = AttributeKey.stringKey("operation_name"); public static final AttributeKey LABEL_SIZE_NAME = AttributeKey.stringKey("size");