Expose request queue metrics
Titousensei opened this issue · comments
In order to monitor a service, a number of counters need to be readable. Currently, almost nothing is accessible. Active_worker_threads and request_queue_size can be read using the ThreadPoolExecutor.
Num_connection is accessible nettyServerTransport.getMetrics().getChannelCount(), but only after hacking the visibility of some field with reflection. Average_queue_time and num_killed_requests (because of expireTimeout) are not accessible at all.
Please provide an API to easily access to the following counters:
- average_queue_time
- num_killed_requests
- num_connection