Class PrometheusJobListener
- java.lang.Object
-
- org.kie.server.services.prometheus.PrometheusJobListener
-
- All Implemented Interfaces:
EventListener,org.jbpm.executor.AsynchronousJobListener
public class PrometheusJobListener extends Object implements org.jbpm.executor.AsynchronousJobListener
-
-
Field Summary
Fields Modifier and Type Field Description protected static io.prometheus.client.SummaryjobDurationprotected static io.prometheus.client.CounternumberOfJobsCancelledprotected static io.prometheus.client.CounternumberOfJobsErroredprotected static io.prometheus.client.CounternumberOfJobsExecutedprotected static io.prometheus.client.GaugenumberOfJobsRetryingprotected static io.prometheus.client.CounternumberOfJobsScheduledprotected static io.prometheus.client.GaugenumberOfRunningJobs
-
Constructor Summary
Constructors Constructor Description PrometheusJobListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterJobCancelled(org.jbpm.executor.AsynchronousJobEvent event)voidafterJobExecuted(org.jbpm.executor.AsynchronousJobEvent event)voidafterJobScheduled(org.jbpm.executor.AsynchronousJobEvent event)voidbeforeJobCancelled(org.jbpm.executor.AsynchronousJobEvent event)voidbeforeJobExecuted(org.jbpm.executor.AsynchronousJobEvent event)voidbeforeJobScheduled(org.jbpm.executor.AsynchronousJobEvent event)
-
-
-
Field Detail
-
numberOfRunningJobs
protected static final io.prometheus.client.Gauge numberOfRunningJobs
-
numberOfJobsScheduled
protected static final io.prometheus.client.Counter numberOfJobsScheduled
-
numberOfJobsExecuted
protected static final io.prometheus.client.Counter numberOfJobsExecuted
-
numberOfJobsCancelled
protected static final io.prometheus.client.Counter numberOfJobsCancelled
-
jobDuration
protected static final io.prometheus.client.Summary jobDuration
-
numberOfJobsRetrying
protected static final io.prometheus.client.Gauge numberOfJobsRetrying
-
numberOfJobsErrored
protected static final io.prometheus.client.Counter numberOfJobsErrored
-
-
Method Detail
-
beforeJobScheduled
public void beforeJobScheduled(org.jbpm.executor.AsynchronousJobEvent event)
- Specified by:
beforeJobScheduledin interfaceorg.jbpm.executor.AsynchronousJobListener
-
afterJobScheduled
public void afterJobScheduled(org.jbpm.executor.AsynchronousJobEvent event)
- Specified by:
afterJobScheduledin interfaceorg.jbpm.executor.AsynchronousJobListener
-
beforeJobExecuted
public void beforeJobExecuted(org.jbpm.executor.AsynchronousJobEvent event)
- Specified by:
beforeJobExecutedin interfaceorg.jbpm.executor.AsynchronousJobListener
-
afterJobExecuted
public void afterJobExecuted(org.jbpm.executor.AsynchronousJobEvent event)
- Specified by:
afterJobExecutedin interfaceorg.jbpm.executor.AsynchronousJobListener
-
beforeJobCancelled
public void beforeJobCancelled(org.jbpm.executor.AsynchronousJobEvent event)
- Specified by:
beforeJobCancelledin interfaceorg.jbpm.executor.AsynchronousJobListener
-
afterJobCancelled
public void afterJobCancelled(org.jbpm.executor.AsynchronousJobEvent event)
- Specified by:
afterJobCancelledin interfaceorg.jbpm.executor.AsynchronousJobListener
-
-