Skip to content

micrometer registry otlp: jvm_gc_* and jvm_buffer_* metrics missing for native image #5597

@patpatpat123

Description

@patpatpat123

Hello team, hello @jonatan-ivanov ,

Just wanted to reach out with a small issue I am observing.
After investigation, I believe this is related to native image.

Background, I have a springboot app, and with it, actuator and registry otlp.
I am trying to send the metrics to a backend, in this example, grafana cloud, just for the sake of having some visual of the missing metrics.

With the app running in "normal" mode (not a native image), all metrics are present.

Now building the exact same app, as native image, and run the dicker container native image.
It is observed that some metrics are missing.

Here is the minimal reproducible repository https://github.com/patpatpat123/nativejvmmetricsissueminimal
The backend is available at https://kafkaobservability.grafana.net/explore?schemaVersion=1&panes=%7B%22tj0%22%3A%7B%22datasource%22%3A%22grafanacloud-prom%22%2C%22queries%22%3A%5B%7B%22refId%22%3A%22A%22%2C%22expr%22%3A%22%22%2C%22range%22%3Atrue%2C%22instant%22%3Atrue%2C%22datasource%22%3A%7B%22type%22%3A%22prometheus%22%2C%22uid%22%3A%22grafanacloud-prom%22%7D%7D%5D%2C%22range%22%3A%7B%22from%22%3A%22now-1h%22%2C%22to%22%3A%22now%22%7D%7D%7D&orgId=1

Could you please kindly look at this issue? The missing metrics are quite important ones.

Thank you so much

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixtheme: native-imageIssues related to GraalVM native or Project Leyden

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions