vivekratnavel opened a new pull request #1390: URL: https://github.com/apache/hadoop-ozone/pull/1390
## What changes were proposed in this pull request? - Add a metrics proxy endpoint to query metrics service providers like prometheus. Example: `<recon_endpoint>/api/v1/metrics/query?query=ratis_leader_election_electionCount` will be proxied to `<prometheus_endpoint>/api/v1/query?query=ratis_leader_election_electionCount` - Add a new config "ozone.recon.prometheus.http.endpoint" to configure Prometheus endpoint. The proxy endpoint (/api/v1/metrics) will respond with an error if Prometheus endpoint is not configured. - Include `ratis_leader_election_electionCount` and `ratis_leader_election_lastLeaderElectionTime` metrics as part of the pipeline endpoint response if prometheus is configured. **Note:** At this point `ratis_leader_election_lastLeaderElectionTime` is still not available and is tracked via https://issues.apache.org/jira/browse/RATIS-1049 - Add unit tests ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-4196 ## How was this patch tested? This patch was tested with unit tests and by verifying the Recon UI in a docker-compose cluster. <img width="1403" alt="Screen Shot 2020-09-03 at 12 57 02 PM" src="https://user-images.githubusercontent.com/1051198/92161163-0f682a80-ede5-11ea-8c3a-93fb26117a09.png"> ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org