-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add a note on slow /metrics endpoint #206
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
Add a note on slow /metrics endpoint #206
Conversation
README.md
Outdated
@@ -21,6 +21,8 @@ To bind the java agent to a specific IP change the port number to `host:port`. | |||
|
|||
See `./run_sample_httpserver.sh` for a sample script that runs the httpserver against itself. | |||
|
|||
Please note that the `/metrics` endpoint is expected to be slow (~10 seconds) and might exceed Prometheus default scrape timeout of 10 seconds. |
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.
That really depends on what you're monitoring
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.
Okay. My interpretation of your reply to #175 was that ~10 seconds are expected. Would you be okay with it when I just remove (~10 seconds)
?
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.
10+ seconds is expected for Cassandra, but other things can be fast. I'd word it as a possibility rather than a certainty, and indicate that this is due to the nature of JMX.
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.
What about:
Please note that due to the nature of JMX the
/metrics
endpoint might exceed Prometheus default scrape timeout of 10 seconds.
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.
Sounds perfect
b7347b1
to
48c1ef4
Compare
48c1ef4
to
7670ecc
Compare
Thanks! |
JMX is not particularly efficient (quote Brian Brazil) However, using Wouldn't it be worth to add this fact to README? |
Sorry, I did not realize that I created this PR for the wrong repo.
fixes #175