xichen01 opened a new pull request, #4924:
URL: https://github.com/apache/ozone/pull/4924
## What changes were proposed in this pull request?
Add CommandHandler Metrics
```
command_handler_metrics_command_received_count{context="CommandHandlerMetrics",command="closeContainerCommand",hostname="VM-8-3-centos"}
8
command_handler_metrics_command_received_count{context="CommandHandlerMetrics",command="closePipelineCommand",hostname="VM-8-3-centos"}
6
command_handler_metrics_command_received_count{context="CommandHandlerMetrics",command="createPipelineCommand",hostname="VM-8-3-centos"}
2
command_handler_metrics_command_received_count{context="CommandHandlerMetrics",command="deleteBlocksCommand",hostname="VM-8-3-centos"}
1
command_handler_metrics_command_received_count{context="CommandHandlerMetrics",command="deleteContainerCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_command_received_count{context="CommandHandlerMetrics",command="finalizeNewLayoutVersionCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_command_received_count{context="CommandHandlerMetrics",command="reconstructECContainersCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_command_received_count{context="CommandHandlerMetrics",command="refreshVolumeUsageInfo",hostname="VM-8-3-centos"}
0
command_handler_metrics_command_received_count{context="CommandHandlerMetrics",command="replicateContainerCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_command_received_count{context="CommandHandlerMetrics",command="setNodeOperationalStateCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_invocation_count{context="CommandHandlerMetrics",command="closeContainerCommand",hostname="VM-8-3-centos"}
8
command_handler_metrics_invocation_count{context="CommandHandlerMetrics",command="closePipelineCommand",hostname="VM-8-3-centos"}
6
command_handler_metrics_invocation_count{context="CommandHandlerMetrics",command="createPipelineCommand",hostname="VM-8-3-centos"}
2
command_handler_metrics_invocation_count{context="CommandHandlerMetrics",command="deleteBlocksCommand",hostname="VM-8-3-centos"}
1
command_handler_metrics_invocation_count{context="CommandHandlerMetrics",command="deleteContainerCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_invocation_count{context="CommandHandlerMetrics",command="finalizeNewLayoutVersionCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_invocation_count{context="CommandHandlerMetrics",command="reconstructECContainersCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_invocation_count{context="CommandHandlerMetrics",command="refreshVolumeUsageInfo",hostname="VM-8-3-centos"}
0
command_handler_metrics_invocation_count{context="CommandHandlerMetrics",command="replicateContainerCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_invocation_count{context="CommandHandlerMetrics",command="setNodeOperationalStateCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_queue_waiting_task_count{context="CommandHandlerMetrics",command="closeContainerCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_queue_waiting_task_count{context="CommandHandlerMetrics",command="closePipelineCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_queue_waiting_task_count{context="CommandHandlerMetrics",command="createPipelineCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_queue_waiting_task_count{context="CommandHandlerMetrics",command="deleteBlocksCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_queue_waiting_task_count{context="CommandHandlerMetrics",command="deleteContainerCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_queue_waiting_task_count{context="CommandHandlerMetrics",command="finalizeNewLayoutVersionCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_queue_waiting_task_count{context="CommandHandlerMetrics",command="reconstructECContainersCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_queue_waiting_task_count{context="CommandHandlerMetrics",command="refreshVolumeUsageInfo",hostname="VM-8-3-centos"}
0
command_handler_metrics_queue_waiting_task_count{context="CommandHandlerMetrics",command="replicateContainerCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_queue_waiting_task_count{context="CommandHandlerMetrics",command="setNodeOperationalStateCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_thread_pool_active_pool_size{context="CommandHandlerMetrics",command="deleteBlocksCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_thread_pool_max_pool_size{context="CommandHandlerMetrics",command="deleteBlocksCommand",hostname="VM-8-3-centos"}
5
command_handler_metrics_total_run_time_ms{context="CommandHandlerMetrics",command="closeContainerCommand",hostname="VM-8-3-centos"}
2
command_handler_metrics_total_run_time_ms{context="CommandHandlerMetrics",command="closePipelineCommand",hostname="VM-8-3-centos"}
1467
command_handler_metrics_total_run_time_ms{context="CommandHandlerMetrics",command="createPipelineCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_total_run_time_ms{context="CommandHandlerMetrics",command="deleteBlocksCommand",hostname="VM-8-3-centos"}
16
command_handler_metrics_total_run_time_ms{context="CommandHandlerMetrics",command="deleteContainerCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_total_run_time_ms{context="CommandHandlerMetrics",command="finalizeNewLayoutVersionCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_total_run_time_ms{context="CommandHandlerMetrics",command="reconstructECContainersCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_total_run_time_ms{context="CommandHandlerMetrics",command="refreshVolumeUsageInfo",hostname="VM-8-3-centos"}
0
command_handler_metrics_total_run_time_ms{context="CommandHandlerMetrics",command="replicateContainerCommand",hostname="VM-8-3-centos"}
0
command_handler_metrics_total_run_time_ms{context="CommandHandlerMetrics",command="setNodeOperationalStateCommand",hostname="VM-8-3-centos"}
0
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8868
## How was this patch tested?
manually test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]