This is an automated email from the ASF dual-hosted git repository.

SpriCoder pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new e81a4325bde Fix wrong metric name in NetMetrics.unbindFrom for 
transmitted bytes (#17688)
e81a4325bde is described below

commit e81a4325bdeaf4cb1647c474086170b2726476d2
Author: Xiangpeng Hu <[email protected]>
AuthorDate: Sat May 16 14:52:49 2026 +0800

    Fix wrong metric name in NetMetrics.unbindFrom for transmitted bytes 
(#17688)
    
    unbindFrom used TRANSMIT ("transmit") as the metric name instead of
    SystemMetric.TRANSMITTED_BYTES, causing the gauge to not be removed.
---
 .../main/java/org/apache/iotdb/metrics/metricsets/net/NetMetrics.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/net/NetMetrics.java
 
b/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/net/NetMetrics.java
index 49c98702ad7..67cd726fa59 100644
--- 
a/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/net/NetMetrics.java
+++ 
b/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/net/NetMetrics.java
@@ -114,7 +114,7 @@ public class NetMetrics implements IMetricSet {
           iface);
       metricService.remove(
           MetricType.AUTO_GAUGE,
-          TRANSMIT,
+          SystemMetric.TRANSMITTED_BYTES.toString(),
           SystemTag.TYPE.toString(),
           TRANSMIT,
           SystemTag.IFACE_NAME.toString(),

Reply via email to