Skip to content

The metrics on the jvm do not appear when I call actuator/prometheus #4011

Description

@patbaie974

I have REST APIs that use SPRING and for which my metrics on the JVM appear well, such as :
2 "jvm.buffer.count"
3 "jvm.buffer.memory.used"
4 "jvm.buffer.total.capacity"
5 "jvm.classes.loaded"
6 "jvm.classes.unloaded"
7 "jvm.gc.live.data.size"
8 "jvm.gc.max.data.size"
9 "jvm.gc.memory.allocated"
10 "jvm.gc.memory.promoted"
11 "jvm.gc.overhead"
12 "jvm.gc.pause"
13 "jvm.memory.committed"
14 "jvm.memory.max"
15 "jvm.memory.usage.after.gc"
16 "jvm.memory.used"
17 "jvm.threads.daemon"
18 "jvm.threads.live"
19 "jvm.threads.peak"
20 "jvm.threads.states"

On the other hand, I have other REST APIs that make calls to other APIs via org.springframework.web.reactive.function.client.WebClient and now I can't see the metrics on the jvm. On the other hand I have metrics on executor and tomcat :
2 "executor.active"
3 "executor.completed
4 "executor.pool.core"
5 "executor.pool.max"
6 "executor.pool.size"
7 "executor.queue.remaining"
8 "executor.queued
9 "tomcat.sessions.active.current"
10 "tomcat.sessions.active.max"
11 "tomcat.sessions.alive.max"
12 "tomcat.sessions.created"
13 "tomcat.sessions.expired"
14 "tomcat.sessions.rejected"

I can't figure out why this difference in behaviour.

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions