Skip to content

[APM] Garbage collection metrics charts - #47023

Merged
dgieselaar merged 3 commits into
elastic:masterfrom
dgieselaar:jvm-gc-metrics
Oct 9, 2019
Merged

dgieselaar merged 3 commits into
elastic:masterfrom
dgieselaar:jvm-gc-metrics

Conversation

@dgieselaar

@dgieselaar dgieselaar commented Oct 1, 2019 •

Copy link
Copy Markdown
Contributor

Closes #36320.

image

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@dgieselaar
dgieselaar force-pushed the jvm-gc-metrics branch 2 times, most recently from 023f3c0 to 9e7b3bc Compare October 3, 2019 10:44
@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@dgieselaar
dgieselaar marked this pull request as ready for review October 3, 2019 15:44
@dgieselaar
dgieselaar requested a review from a team October 3, 2019 15:44
@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value == null is equivalent to value === null || value === undefined

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, totally missed that this was == and not ===. Not used to the former anymore 😅

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be LABELS_NAME = 'labels.name'?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's better. I used ${LABELS}.name because I understood labels to be fully dynamic, and I was overthinking it.

@sorenlouv sorenlouv Oct 4, 2019 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment about how the java agent sends gc.count and gc.time as monotonically increasing counters, and that we need to get the delta.

And perhaps also explain the bucket script below.

@sorenlouv sorenlouv Oct 4, 2019 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at this I'm not entirely sure what we expect value to be. If we expect it to be an integer we could do:

const y = Number.isInteger(value) ? value : null;

@sorenlouv sorenlouv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@dgieselaar

Copy link
Copy Markdown
Contributor Author

@roncohen Right now the numbers to the legend display the average of the counter reported by the agents. I could change that to the average of the values displayed in the chart, and then round it off for the garbage collection count. Thoughts?

@roncohen

roncohen commented Oct 7, 2019

Copy link
Copy Markdown
Contributor

@gieselaar to be sure:

I could change that to the average of the values displayed in the chart, and then round it off for the garbage collection count.

the number in the legend would be the average displayed on the chart. For counts specifically, we'd always round to full integer, also on the popover. Thanks! 👍

@roncohen

roncohen commented Oct 7, 2019 •

Copy link
Copy Markdown
Contributor

@felixbarny @eyalkoren @nehaduggal please have a very close look at this to make sure the numbers and functions (max/avg etc) makes sense and that label names etc. are what you'd expect.

@felixbarny

Copy link
Copy Markdown
Member

Will this view still allow to view the metrics of different JVMs for the same service? I lost track of what the plan is in regards to the JVM table and how to navigate to the charts.

It might make sense to be more explicit about the aggregation and add it to the label or the chart headline like Garbage collection count (avg).

It might be just me but maybe a short demo/sync meeting could be useful.

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@roncohen

roncohen commented Oct 9, 2019

Copy link
Copy Markdown
Contributor

@dgieselaar showed it in the APM UI weekly. If you don't mind @dgieselaar, i think it would be good to show it to the Java team + @nehaduggal to get their sign off on this.

@dgieselaar

Copy link
Copy Markdown
Contributor Author

@roncohen I've checked with Felix, he's OK with merging as-is, so @sqren can deploy it and everybody can have a look at it. We can then discuss it in the meeting tomorrow and patch if necessary.

@dgieselaar
dgieselaar merged commit 43d1c58 into elastic:master Oct 9, 2019
@dgieselaar
dgieselaar deleted the jvm-gc-metrics branch October 9, 2019 11:02
dgieselaar added a commit to dgieselaar/kibana that referenced this pull request Oct 9, 2019
* [APM] Garbage collection metrics charts

Closes elastic#36320.

* Review feedback

* Display average of delta in gc chart
dgieselaar added a commit that referenced this pull request Oct 10, 2019
* [APM] Garbage collection metrics charts

Closes #36320.

* Review feedback

* Display average of delta in gc chart
@ogupte ogupte self-assigned this Oct 21, 2019
@ogupte ogupte added the apm:test-plan-done Pull request that was successfully tested during the test plan label Oct 22, 2019
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
* [APM] Garbage collection metrics charts

Closes elastic#36320.

* Review feedback

* Display average of delta in gc chart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apm:test-plan-done Pull request that was successfully tested during the test plan release_note:enhancement v7.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[APM] Java agent GC metrics visualization

6 participants