MetricsConfig
Configuration data for the Prometheus metrics service.
Controls whether metrics collection is enabled and defines the port, bind address, filters, and path for the Prometheus scrape endpoint, as well as which JVM system metric exporters are active.
The endpoint is served without authentication unless filters add it, so the metrics server binds only loopback unless host says otherwise, and binding every interface logs a WARN. A Prometheus server that scrapes from another host or container needs host set to "0.0.0.0" (or to the interface it reaches).
Every JVM system metric exporter is off unless its flag turns it on.
Constructors
Properties
Whether buffer pool exports are enabled.
Whether class loading exports are enabled.
Whether JIT compilation exports are enabled.
Whether garbage collector exports are enabled.
Whether memory pool exports are enabled.
Whether native memory exports are enabled. They are only present when the JVM runs with -XX:NativeMemoryTracking=summary (or detail).
Whether standard JVM exports are enabled.
Whether thread exports are enabled.
Whether version info exports are enabled.