Class PrometheusHandler
- java.lang.Object
-
- step.plugins.measurements.prometheus.PrometheusHandler
-
- All Implemented Interfaces:
step.plugins.measurements.MeasurementHandler
public class PrometheusHandler extends java.lang.Object implements step.plugins.measurements.MeasurementHandler
-
-
Constructor Summary
Constructors Constructor Description PrometheusHandler(io.prometheus.client.Histogram measurementHistogram)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterExecutionEnd(step.core.execution.ExecutionContext context)
java.util.Map<java.lang.String,LabelsSet>
getLabelsByExec()
java.util.Map<java.lang.String,LabelsSet>
getLabelsByTask()
void
initializeExecutionContext(step.core.execution.ExecutionEngineContext executionEngineContext, step.core.execution.ExecutionContext executionContext)
void
processGauges(java.util.List<step.plugins.measurements.Measurement> measurements)
void
processMeasurements(java.util.List<step.plugins.measurements.Measurement> measurements)
void
removeTaskLabels(java.lang.String taskId)
-
-
-
Method Detail
-
initializeExecutionContext
public void initializeExecutionContext(step.core.execution.ExecutionEngineContext executionEngineContext, step.core.execution.ExecutionContext executionContext)
- Specified by:
initializeExecutionContext
in interfacestep.plugins.measurements.MeasurementHandler
-
processMeasurements
public void processMeasurements(java.util.List<step.plugins.measurements.Measurement> measurements)
- Specified by:
processMeasurements
in interfacestep.plugins.measurements.MeasurementHandler
-
afterExecutionEnd
public void afterExecutionEnd(step.core.execution.ExecutionContext context)
- Specified by:
afterExecutionEnd
in interfacestep.plugins.measurements.MeasurementHandler
-
removeTaskLabels
public void removeTaskLabels(java.lang.String taskId)
-
processGauges
public void processGauges(java.util.List<step.plugins.measurements.Measurement> measurements)
- Specified by:
processGauges
in interfacestep.plugins.measurements.MeasurementHandler
-
getLabelsByExec
public java.util.Map<java.lang.String,LabelsSet> getLabelsByExec()
-
getLabelsByTask
public java.util.Map<java.lang.String,LabelsSet> getLabelsByTask()
-
-