sumitagrawl opened a new pull request, #4035: URL: https://github.com/apache/ozone/pull/4035
## What changes were proposed in this pull request? Event Queue metrics is not reported properly to prometheus, as classname is same for all reports. As HDDS metrics, annotation is used to identify metric name for prometheus, but if not present make use of classname. As change, 1) Updating annotation dynamically while registeration with name provided for EventQueue and then registering to metrics system ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-7464 ## How was this patch tested? 1. Metrics are verified using prometheus endpoint Event queue metrics reported: FCR: <img width="1035" alt="image" src="https://user-images.githubusercontent.com/23372859/205322842-0d7d5b29-e44f-4be9-b84c-a8ae945d3e4d.png"> ICR: <img width="1174" alt="image" src="https://user-images.githubusercontent.com/23372859/205323007-fc253632-0e5f-4a9a-bcb8-45cc961cdf2b.png"> Earlier, event_queue_** reports were not coming as prefix. Its coming directly with class name. -- 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]
