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

morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git

commit ca76472335c1bf3ac378300a0ec10db1b8241ff8
Author: yongkang.zhong <zhong...@qq.com>
AuthorDate: Sun Mar 5 16:38:43 2023 +0800

    [fix](metrics)Delete the extra underline for metrics (#17397)
---
 be/src/util/system_metrics.cpp | 18 +++++++++---------
 be/src/util/system_metrics.h   |  6 +++---
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/be/src/util/system_metrics.cpp b/be/src/util/system_metrics.cpp
index 5e94b7ce79..2f259d343f 100644
--- a/be/src/util/system_metrics.cpp
+++ b/be/src/util/system_metrics.cpp
@@ -301,9 +301,9 @@ struct ProcMetrics {
     IntAtomicCounter* proc_procs_blocked;
 };
 
-DEFINE_GAUGE_CORE_METRIC_PROTOTYPE_2ARG(_max_disk_io_util_percent, 
MetricUnit::PERCENT);
-DEFINE_GAUGE_CORE_METRIC_PROTOTYPE_2ARG(_max_network_send_bytes_rate, 
MetricUnit::BYTES);
-DEFINE_GAUGE_CORE_METRIC_PROTOTYPE_2ARG(_max_network_receive_bytes_rate, 
MetricUnit::BYTES);
+DEFINE_GAUGE_CORE_METRIC_PROTOTYPE_2ARG(max_disk_io_util_percent, 
MetricUnit::PERCENT);
+DEFINE_GAUGE_CORE_METRIC_PROTOTYPE_2ARG(max_network_send_bytes_rate, 
MetricUnit::BYTES);
+DEFINE_GAUGE_CORE_METRIC_PROTOTYPE_2ARG(max_network_receive_bytes_rate, 
MetricUnit::BYTES);
 
 const char* SystemMetrics::_s_hook_name = "system_metrics";
 
@@ -323,9 +323,9 @@ SystemMetrics::SystemMetrics(MetricRegistry* registry, 
const std::set<std::strin
     _install_load_avg_metrics(_server_entity.get());
     _install_proc_metrics(_server_entity.get());
 
-    INT_GAUGE_METRIC_REGISTER(_server_entity.get(), _max_disk_io_util_percent);
-    INT_GAUGE_METRIC_REGISTER(_server_entity.get(), 
_max_network_send_bytes_rate);
-    INT_GAUGE_METRIC_REGISTER(_server_entity.get(), 
_max_network_receive_bytes_rate);
+    INT_GAUGE_METRIC_REGISTER(_server_entity.get(), max_disk_io_util_percent);
+    INT_GAUGE_METRIC_REGISTER(_server_entity.get(), 
max_network_send_bytes_rate);
+    INT_GAUGE_METRIC_REGISTER(_server_entity.get(), 
max_network_receive_bytes_rate);
 }
 
 SystemMetrics::~SystemMetrics() {
@@ -871,15 +871,15 @@ void SystemMetrics::get_max_net_traffic(const 
std::map<std::string, int64_t>& ls
 
 void SystemMetrics::update_max_disk_io_util_percent(const 
std::map<std::string, int64_t>& lst_value,
                                                     int64_t interval_sec) {
-    _max_disk_io_util_percent->set_value(get_max_io_util(lst_value, 
interval_sec));
+    max_disk_io_util_percent->set_value(get_max_io_util(lst_value, 
interval_sec));
 }
 
 void SystemMetrics::update_max_network_send_bytes_rate(int64_t 
max_send_bytes_rate) {
-    _max_network_send_bytes_rate->set_value(max_send_bytes_rate);
+    max_network_send_bytes_rate->set_value(max_send_bytes_rate);
 }
 
 void SystemMetrics::update_max_network_receive_bytes_rate(int64_t 
max_receive_bytes_rate) {
-    _max_network_receive_bytes_rate->set_value(max_receive_bytes_rate);
+    max_network_receive_bytes_rate->set_value(max_receive_bytes_rate);
 }
 
 void SystemMetrics::_install_proc_metrics(MetricEntity* entity) {
diff --git a/be/src/util/system_metrics.h b/be/src/util/system_metrics.h
index 8f54aa9440..19ccfe0726 100644
--- a/be/src/util/system_metrics.h
+++ b/be/src/util/system_metrics.h
@@ -106,9 +106,9 @@ private:
     MetricRegistry* _registry = nullptr;
     std::shared_ptr<MetricEntity> _server_entity = nullptr;
 
-    IntGauge* _max_disk_io_util_percent;
-    IntGauge* _max_network_send_bytes_rate;
-    IntGauge* _max_network_receive_bytes_rate;
+    IntGauge* max_disk_io_util_percent;
+    IntGauge* max_network_send_bytes_rate;
+    IntGauge* max_network_receive_bytes_rate;
 };
 
 } // namespace doris


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to