From adbcaf27ce232e61cfbe36336a605c9a7674a117 Mon Sep 17 00:00:00 2001 From: jeremyhi Date: Tue, 9 Jan 2024 17:12:18 +0800 Subject: [PATCH] chore: fix bad metric name --- docs/metrics-display.md | 2 +- ingester-grpc/src/main/java/io/greptime/rpc/GrpcClient.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/metrics-display.md b/docs/metrics-display.md index 82e8ca5..6f1c22a 100644 --- a/docs/metrics-display.md +++ b/docs/metrics-display.md @@ -36,7 +36,7 @@ By default, 2 files are generated in the program's working directory | Meter | write_failure_num | Statistics on the number of failed writes. | | Meter | write_qps | Write Request QPS | | Timer | async_write_pool.time | Asynchronous pool time statistics for asynchronous write tasks in SDK, this is important and it is recommended to focus on it. | -| Timer | direct_executor_timer_rpc-direct-pool | he appearance of this metric means that we are using the current thread to execute the asynchronous callback of the rpc client, which is the default configuration.
This is usually sufficient and very resource-saving, but it needs attention. When there are problems, replace it with a thread pool in time. | +| Timer | direct_executor_timer_rpc_direct_pool | he appearance of this metric means that we are using the current thread to execute the asynchronous callback of the rpc client, which is the default configuration.
This is usually sufficient and very resource-saving, but it needs attention. When there are problems, replace it with a thread pool in time. | | Timer | req_rt_${service_name}/${method_name} | The time consumption statistics of the request, the service name and method name are the names of the service and method of the grpc request. | | Timer | scheduled_thread_pool.${schedule_thread_pool_name} | Schedule thread pool execution task time statistics. | | Timer | serializing_executor_drain_timer_${name} | Serializing executor. Drains all tasks for time consumption statistics | diff --git a/ingester-grpc/src/main/java/io/greptime/rpc/GrpcClient.java b/ingester-grpc/src/main/java/io/greptime/rpc/GrpcClient.java index 051499c..04aba7d 100644 --- a/ingester-grpc/src/main/java/io/greptime/rpc/GrpcClient.java +++ b/ingester-grpc/src/main/java/io/greptime/rpc/GrpcClient.java @@ -131,7 +131,7 @@ public boolean init(RpcOptions opts) { if (this.useSharedRpcPool) { this.asyncPool = SHARED_ASYNC_POOL.getObject(); } else { - this.asyncPool = new DirectExecutor("rpc-direct-pool"); + this.asyncPool = new DirectExecutor("rpc_direct_pool"); } initInterceptors();