MetricsConfig

data class MetricsConfig(val enabled: Boolean, val port: Int, val path: String, val standardExportsEnabled: Boolean, val memoryPoolsExportsEnabled: Boolean, val garbageCollectorExportsEnabled: Boolean, val threadExportsEnabled: Boolean, val classLoadingExportsEnabled: Boolean, val versionInfoExportsEnabled: Boolean, val host: String? = null, val bufferPoolExportsEnabled: Boolean = false, val compilationExportsEnabled: Boolean = false, val nativeMemoryExportsEnabled: Boolean = false)

Configuration data for the Prometheus metrics service.

Controls whether metrics collection is enabled and defines the port, bind address, and path for the Prometheus scrape endpoint, as well as which JVM system metric exporters are active.

Constructors

Link copied to clipboard
constructor(enabled: Boolean, port: Int, path: String, standardExportsEnabled: Boolean, memoryPoolsExportsEnabled: Boolean, garbageCollectorExportsEnabled: Boolean, threadExportsEnabled: Boolean, classLoadingExportsEnabled: Boolean, versionInfoExportsEnabled: Boolean, host: String? = null, bufferPoolExportsEnabled: Boolean = false, compilationExportsEnabled: Boolean = false, nativeMemoryExportsEnabled: Boolean = false)

Properties

Link copied to clipboard

Whether buffer pool exports are enabled.

Link copied to clipboard

Whether class loading exports are enabled.

Link copied to clipboard

Whether JIT compilation exports are enabled.

Link copied to clipboard

Whether the metrics service is enabled.

Link copied to clipboard

Whether garbage collector exports are enabled.

Link copied to clipboard
val host: String?

The interface the metrics server binds to, such as "127.0.0.1" to accept only local connections. The default, null, binds every interface.

Link copied to clipboard

Whether memory pool exports are enabled.

Link copied to clipboard

Whether native memory exports are enabled. They are only present when the JVM runs with -XX:NativeMemoryTracking=summary (or detail).

Link copied to clipboard

The URL path for the Prometheus metrics endpoint, with or without a leading slash.

Link copied to clipboard
val port: Int

The HTTP port on which the Prometheus metrics endpoint is served.

Link copied to clipboard

Whether standard JVM exports are enabled.

Link copied to clipboard

Whether thread exports are enabled.

Link copied to clipboard

Whether version info exports are enabled.