Class ProcessorMetrics

java.lang.Object
io.micrometer.core.instrument.binder.system.ProcessorMetrics
All Implemented Interfaces:
MeterBinder

@NullMarked public class ProcessorMetrics extends Object implements MeterBinder
Record metrics related to the CPU, gathered by the JVM.

Supported JVM implementations:

  • HotSpot
  • J9
  • Constructor Details

    • ProcessorMetrics

      public ProcessorMetrics()
    • ProcessorMetrics

      public ProcessorMetrics(Iterable<Tag> extraTags)
      Uses the default convention with the provided extra tags.
      Parameters:
      extraTags - tags to add to each meter's tags produced by this binder
    • ProcessorMetrics

      public ProcessorMetrics(Iterable<? extends Tag> extraTags, JvmCpuMeterConventions conventions)
      The 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 conventions
      conventions - custom conventions for applicable meters
      Since:
      1.16.0
  • Method Details