huyuanfeng2018 opened a new pull request #12126: URL: https://github.com/apache/druid/pull/12126
### Description Because the branch was deleted by me by mistake, now resubmit this pr The previous submission is [12042](https://github.com/apache/druid/pull/12042) When we use druid for various query operations, there may be some query requests that take a long time. These query requests may be some bad query requests. If there are many such requests, it will cause a lot of pressure on druid, so we hope A metric can be added to count the number of occurrences of these query requests, and to mark these requests in the request log. So that we can analyze these queries and can make it a little easier for cluster operators to diagnose query issues better. This PR adds a new query metric query/long/count that represents the number of long queries during the emission period and request logging will mark if this request is a long query request This PR has: - [x] been self-reviewed. - [x] added documentation for new or modified features or behaviors. - [x] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links. - [x] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met. -- 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]
