Class ContainerLifecycleMicrometerHolder
java.lang.Object
org.springframework.kafka.support.micrometer.ContainerLifecycleMicrometerHolder
Micrometer holder for container lifecycle metrics (start/stop counts).
- Since:
- 4.2.0
- Author:
- Vineeth Yelagandula
-
Constructor Summary
ConstructorsConstructorDescriptionContainerLifecycleMicrometerHolder(io.micrometer.core.instrument.MeterRegistry registry, String containerName) Create an instance with the providedMeterRegistryand container name. -
Method Summary
Modifier and TypeMethodDescriptionvoidIncrement the start counter.voidIncrement the stop counter.
-
Constructor Details
-
ContainerLifecycleMicrometerHolder
public ContainerLifecycleMicrometerHolder(io.micrometer.core.instrument.MeterRegistry registry, String containerName) Create an instance with the providedMeterRegistryand container name.- Parameters:
registry- the meter registry.containerName- the container bean name.
-
-
Method Details
-
recordStart
public void recordStart()Increment the start counter. -
recordStop
public void recordStop()Increment the stop counter.
-