SystemMetrics
object SystemMetrics
Registers the Prometheus Java client's JVM and process metrics (prometheus-metrics-instrumentation-jvm).
Calling initialize multiple times is safe; each metric set is registered at most once per registry.
Functions
Link copied to clipboard
Forgets which metric sets initialize registered with registry, so the next call registers them again.
Link copied to clipboard
fun initialize(enableStandardExports: Boolean = false, enableMemoryPoolsExports: Boolean = false, enableGarbageCollectorExports: Boolean = false, enableThreadExports: Boolean = false, enableClassLoadingExports: Boolean = false, enableVersionInfoExports: Boolean = false, enableBufferPoolExports: Boolean = false, enableCompilationExports: Boolean = false, enableNativeMemoryExports: Boolean = false, registry: PrometheusRegistry = PrometheusRegistry.defaultRegistry)
Registers the selected JVM and process metric sets with registry.