Class ProcessorMetrics
java.lang.Object
io.micrometer.core.instrument.binder.system.ProcessorMetrics
- All Implemented Interfaces:
MeterBinder
Record metrics related to the CPU, gathered by the JVM.
Supported JVM implementations:
- HotSpot
- J9
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionProcessorMetrics(Iterable<? extends Tag> extraTags, JvmCpuMeterConventions conventions) Deprecated.ProcessorMetrics(Iterable<Tag> extraTags) Uses the default convention with the provided extra tags. -
Method Summary
Modifier and TypeMethodDescriptionvoidbindTo(MeterRegistry registry) static ProcessorMetrics.Builderbuilder()Create a new builder forProcessorMetrics.
-
Constructor Details
-
ProcessorMetrics
public ProcessorMetrics() -
ProcessorMetrics
-
ProcessorMetrics
@Deprecated public ProcessorMetrics(Iterable<? extends Tag> extraTags, JvmCpuMeterConventions conventions) Deprecated.usebuilder()to provide individual conventionsThe supplied extra tags are not combined with the convention. Provide a convention that applies the extra tags if that is the desired outcome. The convention only applies to some meters.- Parameters:
extraTags- extra tags to add to meters not covered by the conventionsconventions- custom conventions for applicable meters- Since:
- 1.16.0
-
-
Method Details
-
builder
Create a new builder forProcessorMetrics.- Returns:
- a new builder
- Since:
- 1.18.0
-
bindTo
- Specified by:
bindToin interfaceMeterBinder
-
builder()to provide individual conventions