Class JvmMetrics.Builder
java.lang.Object
io.prometheus.metrics.instrumentation.jvm.JvmMetrics.Builder
- Enclosing class:
JvmMetrics
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstLabels(Labels constLabels) Set constant labels that will be applied to all JVM metrics registered by this builder.voidregister()Register all JVM metrics with the default registry.voidregister(PrometheusRegistry registry) Register all JVM metrics with theregistry.
-
Field Details
-
config
-
constLabels
-
-
Constructor Details
-
Builder
-
-
Method Details
-
constLabels
Set constant labels that will be applied to all JVM metrics registered by this builder. -
register
public void 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.It's safe to call this multiple times, only the first call will register the metrics, all subsequent calls will be ignored.
-