apache / druid

Apache Druid: a high performance real-time analytics database.
https://druid.apache.org/
Apache License 2.0
13.53k stars 3.71k forks source link

Add per-event JVM GC duration tracking #17472

Open jtuglu-netflix opened 2 weeks ago

jtuglu-netflix commented 2 weeks ago

This PR provides enhances JVM GC metrics to the JvmMonitor monitor. Namely:

Description

Pulls GC event subscription logic from https://github.com/Netflix/spectator. I'm wondering whether more metrics from this list: https://netflix.github.io/atlas-docs/spectator/lang/java/ext/jvm-gc/#jvmgcpause – we currently take aggregate statistics from getMemoryPoolMXBeans() on total mem usage, etc. via GcSpaceCollector.

Release note

Adds jvm/gc/pause and jvm/gc/concurrentTime metrics to JvmMonitor.


Key changed/added classes in this PR

This PR has: