Skip to content

JFR based meter registry #2273

Open
Open
@marschall

Description

@marschall

We are currently using JDK Flight Recorder for our monitoring and metric needs. Recently a third party dependency introduced a dependency to Micrometer into our application. Following this we started implementing a meter registry that generates JFR events https://github.com/marschall/micrometer-jfr. We would be willing to contribute this if there is interest for it.

The implementation tries to do things the "JFR way":

  • Uses JFR periodic events for sampled meters.
  • Tries to add as much JFR metadata as possible for nice presentation in JDK Mission Control.
  • Generates a JFR event whenever possible and lets statistic generation and histograms be done by whoever reads the recording. It therefore takes various shortcuts when it comes to statistics and histograms that I'm not sure are in the spirit of Micrometer. I have to confess I'm not very familiar with Micrometer concepts apart from skimming the docs.

JFR tequires an OpenJDK 11+, OpenJ9 won't work, Zing may work. There are some vendors that backported JFR to JDK 8, that may work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions