Class PrometheusProcessEventListener
- java.lang.Object
-
- org.kie.api.event.process.DefaultProcessEventListener
-
- org.kie.server.services.prometheus.PrometheusProcessEventListener
-
- All Implemented Interfaces:
EventListener,org.kie.api.event.process.ProcessEventListener
public class PrometheusProcessEventListener extends org.kie.api.event.process.DefaultProcessEventListener
-
-
Field Summary
Fields Modifier and Type Field Description protected static io.prometheus.client.CounternumberOfProcessInstancesCompletedprotected static io.prometheus.client.CounternumberOfProcessInstancesStartedprotected static io.prometheus.client.CounternumberOfSLAsViolatedprotected static io.prometheus.client.SummaryprocessInstancesDurationprotected static io.prometheus.client.GaugerunningProcessInstancesprotected static io.prometheus.client.SummaryworkItemsDuration
-
Constructor Summary
Constructors Constructor Description PrometheusProcessEventListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event)voidafterProcessStarted(org.kie.api.event.process.ProcessStartedEvent event)voidafterSLAViolated(org.kie.api.event.process.SLAViolatedEvent event)voidbeforeNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event)protected static voidrecordRunningProcessInstance(String containerId, String processId)-
Methods inherited from class org.kie.api.event.process.DefaultProcessEventListener
afterNodeLeft, afterNodeTriggered, afterVariableChanged, beforeNodeTriggered, beforeProcessCompleted, beforeProcessStarted, beforeVariableChanged
-
-
-
-
Field Detail
-
numberOfProcessInstancesStarted
protected static final io.prometheus.client.Counter numberOfProcessInstancesStarted
-
numberOfSLAsViolated
protected static final io.prometheus.client.Counter numberOfSLAsViolated
-
numberOfProcessInstancesCompleted
protected static final io.prometheus.client.Counter numberOfProcessInstancesCompleted
-
runningProcessInstances
protected static final io.prometheus.client.Gauge runningProcessInstances
-
processInstancesDuration
protected static final io.prometheus.client.Summary processInstancesDuration
-
workItemsDuration
protected static final io.prometheus.client.Summary workItemsDuration
-
-
Method Detail
-
recordRunningProcessInstance
protected static void recordRunningProcessInstance(String containerId, String processId)
-
afterProcessStarted
public void afterProcessStarted(org.kie.api.event.process.ProcessStartedEvent event)
- Specified by:
afterProcessStartedin interfaceorg.kie.api.event.process.ProcessEventListener- Overrides:
afterProcessStartedin classorg.kie.api.event.process.DefaultProcessEventListener
-
afterProcessCompleted
public void afterProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event)
- Specified by:
afterProcessCompletedin interfaceorg.kie.api.event.process.ProcessEventListener- Overrides:
afterProcessCompletedin classorg.kie.api.event.process.DefaultProcessEventListener
-
beforeNodeLeft
public void beforeNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event)
- Specified by:
beforeNodeLeftin interfaceorg.kie.api.event.process.ProcessEventListener- Overrides:
beforeNodeLeftin classorg.kie.api.event.process.DefaultProcessEventListener
-
afterSLAViolated
public void afterSLAViolated(org.kie.api.event.process.SLAViolatedEvent event)
-
-