Class BrokerStepMetrics
- java.lang.Object
-
- io.camunda.zeebe.broker.system.monitoring.BrokerStepMetrics
-
public class BrokerStepMetrics extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringSTEP_NAME_LABELstatic StringZEEBE_NAMESPACE
-
Constructor Summary
Constructors Constructor Description BrokerStepMetrics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidobserveDurationForCloseStep(String stepName, long closeDuration)Meter the the time to close for a single step.voidobserveDurationForStarStep(String stepName, long startupDuration)Meter the time to start for a single step.
-
-
-
Field Detail
-
ZEEBE_NAMESPACE
public static final String ZEEBE_NAMESPACE
- See Also:
- Constant Field Values
-
STEP_NAME_LABEL
public static final String STEP_NAME_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
observeDurationForStarStep
public void observeDurationForStarStep(String stepName, long startupDuration)
Meter the time to start for a single step.- Parameters:
stepName- the name of the stepstartupDuration- the step start duration in ms
-
observeDurationForCloseStep
public void observeDurationForCloseStep(String stepName, long closeDuration)
Meter the the time to close for a single step.- Parameters:
stepName- the name of the stepcloseDuration- the step close duration in ms
-
-