Class CommonProcessingMetrics
java.lang.Object
fr.gouv.vitam.processing.common.metrics.CommonProcessingMetrics
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.prometheus.client.Gauge
Count the number of tasks created by the distributor and not yet completed The tasks maybe in the queue or waiting to be enqueuedstatic final io.prometheus.client.Histogram
ProcessWorkflow step execution duration form ProcessEngine point of viewstatic final io.prometheus.client.Gauge
Count the number of registered workers If we know that we have 2 workers, but metrics says 1 worker => this means that we have to analyse why we have only 1 instead of 2static final io.prometheus.client.Histogram
Worker task execution duration From call of worker until receiving the response.static final io.prometheus.client.Histogram
Worker task waiting in the queue From task creation, until dequeue by a given threadstatic final io.prometheus.client.Gauge
Count the number of worker task in the queue If the queue is empty, means there no more operation. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WORKER_TASKS_IN_QUEUE
public static final io.prometheus.client.Gauge WORKER_TASKS_IN_QUEUECount the number of worker task in the queue If the queue is empty, means there no more operation. => if per month for example we have empty queue, means that we can reduce the number of workers If the queue is full, means that worker cant consume all tasks => perhaps, we have to add more workers -
CURRENTLY_INSTANTIATED_TASKS
public static final io.prometheus.client.Gauge CURRENTLY_INSTANTIATED_TASKSCount the number of tasks created by the distributor and not yet completed The tasks maybe in the queue or waiting to be enqueued -
REGISTERED_WORKERS
public static final io.prometheus.client.Gauge REGISTERED_WORKERSCount the number of registered workers If we know that we have 2 workers, but metrics says 1 worker => this means that we have to analyse why we have only 1 instead of 2 -
WORKER_TASKS_EXECUTION_DURATION_HISTOGRAM
public static final io.prometheus.client.Histogram WORKER_TASKS_EXECUTION_DURATION_HISTOGRAMWorker task execution duration From call of worker until receiving the response. Task contains one or collection of elements to send to workers -
WORKER_TASKS_IDLE_DURATION_IN_QUEUE
public static final io.prometheus.client.Histogram WORKER_TASKS_IDLE_DURATION_IN_QUEUEWorker task waiting in the queue From task creation, until dequeue by a given thread -
PROCESS_WORKFLOW_STEP_EXECUTION_DURATION_HISTOGRAM
public static final io.prometheus.client.Histogram PROCESS_WORKFLOW_STEP_EXECUTION_DURATION_HISTOGRAMProcessWorkflow step execution duration form ProcessEngine point of view
-
-
Constructor Details
-
CommonProcessingMetrics
public CommonProcessingMetrics()
-