-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[APM] Java agent metrics custom API endpoint #34708
Comments
Pinging @elastic/apm-ui |
@jasonrhodes never say "ever" 😄 |
@Eyal-Koren I still don't have the queries for these 5 graphs so I'm going to take a stab at putting them together tomorrow. Two questions for you:
|
@jasonrhodes All required metrics are available in Java agent version 1.6.0. Metric data:
Let me know if there's anything else you need. |
@roncohen I know we said that we can rely on the new |
@eyalkoren yes, this could work fine as a start 👍 |
@eyalkoren Looks like apm-integration-testing is only pulling version |
@jasonrhodes if you refer to the opbeans docker image, I triggered a build that will take the latest agent. Try it out in a couple of hours and see if you get 1.6.1-SNAPSHOT. Otherwise, start with 1.5.1 - it has everything except from the thread count, which is likely the simplest one you have. @roncohen what do you want to do with that? Create an issue in the apm repo for all agents, or just do it in the Java agent for now? Also, if I send it in the metadata as |
@Eyal-Koren ok, I just upgraded and still seem to have 1.5 ... can you just let me know when the snapshot is built and ready or give me a way to check on that myself? For you and for @roncohen : as of now I only have the metrics required to build the queries for 2/5 graphs. When can I expect to have data that will represent everything needed to make all 5 graphs? Hopefully thread count will land tomorrow once the java agent snapshot is built, but what about whatever you and @Eyal-Koren are talking about re: garbage collection? I don't understand enough of it to follow along. |
@eyalkoren Generally, I was trying to avoid adding And let's make sure we get @jasonrhodes the metrics he needs as soon as possible |
Related server issue: elastic/apm-server#2148 @jasonrhodes I don't know exactly what you tested. I guessed it was opbeans and I created a docker image that uses Java agent version 1.6.1-SNAPSHOT. I just tried |
@eyalkoren thanks, I'll try again. @roncohen do you think you can explain to me what the "ephemeral_id" should be used for with regard to the garbage collection queries? I'm not sure how those queries need to be constructed. |
I'm going to modify this ticket to just deal with the Java memory and thread count metrics, and then move on to building out those 3 graphs. We'll circle back to the garbage collection graphs when that data is ready to be queried. Thanks all! |
For "Metrics Phase 2", we will be focusing on displaying custom metrics from the Java agent. To do this, we need our APM Kibana API to expose an endpoint (or multiple?) for 5 new Java agent-specific graphs.
AC:
Note:
These 2 graphs will be added to the endpoint's results once the data is ready to be queried. See elastic/apm-server#2148
- Time - multiple lines, a line per pool*
- Count - same
*@Eyal-Koren is it true that we don't ever expect the GC time graph to ever have more than 4-5 pools, which is why we are okay with showing a line per pool there?
The text was updated successfully, but these errors were encountered: