Class PrometheusProcessEventListener

  • All Implemented Interfaces:
    EventListener, org.kie.api.event.process.ProcessEventListener

    public class PrometheusProcessEventListener
    extends org.kie.api.event.process.DefaultProcessEventListener
    • 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
    • Constructor Detail

      • PrometheusProcessEventListener

        public PrometheusProcessEventListener()
    • Method Detail

      • recordRunningProcessInstance

        protected static void recordRunningProcessInstance​(String containerId,
                                                           String processId)
      • afterProcessStarted

        public void afterProcessStarted​(org.kie.api.event.process.ProcessStartedEvent event)
        Specified by:
        afterProcessStarted in interface org.kie.api.event.process.ProcessEventListener
        Overrides:
        afterProcessStarted in class org.kie.api.event.process.DefaultProcessEventListener
      • afterProcessCompleted

        public void afterProcessCompleted​(org.kie.api.event.process.ProcessCompletedEvent event)
        Specified by:
        afterProcessCompleted in interface org.kie.api.event.process.ProcessEventListener
        Overrides:
        afterProcessCompleted in class org.kie.api.event.process.DefaultProcessEventListener
      • beforeNodeLeft

        public void beforeNodeLeft​(org.kie.api.event.process.ProcessNodeLeftEvent event)
        Specified by:
        beforeNodeLeft in interface org.kie.api.event.process.ProcessEventListener
        Overrides:
        beforeNodeLeft in class org.kie.api.event.process.DefaultProcessEventListener
      • afterSLAViolated

        public void afterSLAViolated​(org.kie.api.event.process.SLAViolatedEvent event)