-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HBASE-27435 Make Prometheus metrics queryable #4879
Conversation
Notes: - Made the code more compact
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Notes: - Fixed FindBugs issues
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
private boolean descriptionEnabled; | ||
private String queryParam; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Servlets should be stateless. There is only one PrometheusHadoopServlet
in the JVM, so it can lead to concurrency issues when multiple requests are coming in the same time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should've paid more attention to it, thank you for your suggestion!
I fixed it in the next commit.
Notes: - Removed the states of PrometheusHadoopServlet - Description and query are now passed as parameters of the writeMetrics() method
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Signed-off-by: Balazs Meszaros <[email protected]>
In this change I implemented the query feature for the Prometheus metrics
Apache JIRA: https://issues.apache.org/jira/browse/HBASE-27435