{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/nifty/issues/151","repository_url":"https://api.github.com/repos/facebook/nifty","labels_url":"https://api.github.com/repos/facebook/nifty/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/facebook/nifty/issues/151/comments","events_url":"https://api.github.com/repos/facebook/nifty/issues/151/events","html_url":"https://github.com/facebook/nifty/issues/151","id":151253895,"number":151,"title":"Expose request queue metrics","user":{"login":"Titousensei","id":2326482,"avatar_url":"https://avatars.githubusercontent.com/u/2326482?v=3","gravatar_id":"","url":"https://api.github.com/users/Titousensei","html_url":"https://github.com/Titousensei","followers_url":"https://api.github.com/users/Titousensei/followers","following_url":"https://api.github.com/users/Titousensei/following{/other_user}","gists_url":"https://api.github.com/users/Titousensei/gists{/gist_id}","starred_url":"https://api.github.com/users/Titousensei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Titousensei/subscriptions","organizations_url":"https://api.github.com/users/Titousensei/orgs","repos_url":"https://api.github.com/users/Titousensei/repos","events_url":"https://api.github.com/users/Titousensei/events{/privacy}","received_events_url":"https://api.github.com/users/Titousensei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-26T22:25:00Z","updated_at":"2016-04-26T22:25:00Z","closed_at":null,"body":"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. \r\nNum_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.\r\nPlease provide an API to easily access to the following counters:\r\n- average_queue_time\r\n- num_killed_requests\r\n- num_connection\r\n "}}