Class JvmMetrics.Builder
Object
Builder
- Enclosing class:
- JvmMetrics
-
Method Summary
Modifier and TypeMethodDescriptionvoid
register()
Register all JVM metrics with the default registry.void
register
(PrometheusRegistry registry) Register all JVM metrics with theregistry
.
-
Method Details
-
register
Register all JVM metrics with the default registry.It's safe to call this multiple times: Only the first call will register the metrics, all subsequent calls will be ignored.
-
register
Register all JVM metrics with theregistry
.You must make sure to call this only once per
registry
, otherwise it will throw an Exception because you are trying to register duplicate metrics.
-