Package io.kestra.core.metrics
Class MetricRegistry
java.lang.Object
io.kestra.core.metrics.MetricRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(io.micrometer.core.instrument.binder.MeterBinder meterBinder) Attach aMeterBinderto current registryio.micrometer.core.instrument.CounterTracks a monotonically increasing value.<T extends Number>
TRegister a gauge that reports the value of theNumber.io.micrometer.core.instrument.DistributionSummaryMeasures the distribution of samples.String[]Return tags for currentExecutionString[]Return tags for currentTaskString[]tags(TriggerContext triggerContext) Return tags for currentTriggerContextString[]tags(TriggerContext triggerContext, String workerGroup) Return tags for currentTriggerContextString[]tags(WorkerTaskResult workerTaskResult, String... tags) Return tags for currentWorkerTaskResultString[]tags(WorkerTask workerTask, String workerGroup, String... tags) Return tags for currentWorkerTask.String[]tags(SchedulerExecutionWithTrigger schedulerExecutionWithTrigger, String... tags) Return tags for currentSchedulerExecutionWithTrigger.io.micrometer.core.instrument.TagsReturn globals tagsio.micrometer.core.instrument.TimerMeasures the time taken for short tasks and the count of these tasks.
-
Field Details
-
METRIC_WORKER_RUNNING_COUNT
- See Also:
-
METRIC_WORKER_QUEUED_DURATION
- See Also:
-
METRIC_WORKER_STARTED_COUNT
- See Also:
-
METRIC_WORKER_RETRYED_COUNT
- See Also:
-
METRIC_WORKER_TIMEOUT_COUNT
- See Also:
-
METRIC_WORKER_ENDED_COUNT
- See Also:
-
METRIC_WORKER_ENDED_DURATION
- See Also:
-
METRIC_WORKER_EVALUATE_TRIGGER_DURATION
- See Also:
-
METRIC_WORKER_EVALUATE_TRIGGER_RUNNING_COUNT
- See Also:
-
EXECUTOR_TASKRUN_NEXT_COUNT
- See Also:
-
EXECUTOR_TASKRUN_ENDED_COUNT
- See Also:
-
EXECUTOR_TASKRUN_ENDED_DURATION
- See Also:
-
EXECUTOR_WORKERTASKRESULT_COUNT
- See Also:
-
EXECUTOR_EXECUTION_STARTED_COUNT
- See Also:
-
EXECUTOR_EXECUTION_END_COUNT
- See Also:
-
EXECUTOR_EXECUTION_DURATION
- See Also:
-
METRIC_INDEXER_REQUEST_COUNT
- See Also:
-
METRIC_INDEXER_REQUEST_DURATION
- See Also:
-
METRIC_INDEXER_REQUEST_RETRY_COUNT
- See Also:
-
METRIC_INDEXER_SERVER_DURATION
- See Also:
-
METRIC_INDEXER_MESSAGE_FAILED_COUNT
- See Also:
-
METRIC_INDEXER_MESSAGE_IN_COUNT
- See Also:
-
METRIC_INDEXER_MESSAGE_OUT_COUNT
- See Also:
-
SCHEDULER_LOOP_COUNT
- See Also:
-
SCHEDULER_TRIGGER_COUNT
- See Also:
-
SCHEDULER_TRIGGER_DELAY_DURATION
- See Also:
-
SCHEDULER_EVALUATE_COUNT
- See Also:
-
SCHEDULER_EXECUTION_RUNNING_DURATION
- See Also:
-
SCHEDULER_EXECUTION_MISSING_DURATION
- See Also:
-
STREAMS_STATE_COUNT
- See Also:
-
JDBC_QUERY_DURATION
- See Also:
-
TAG_TASK_TYPE
- See Also:
-
TAG_FLOW_ID
- See Also:
-
TAG_NAMESPACE_ID
- See Also:
-
TAG_STATE
- See Also:
-
TAG_ATTEMPT_COUNT
- See Also:
-
TAG_WORKER_GROUP
- See Also:
-
TAG_TENANT_ID
- See Also:
-
-
Constructor Details
-
MetricRegistry
public MetricRegistry()
-
-
Method Details
-
counter
Tracks a monotonically increasing value.- Parameters:
name- The base metric nametags- MUST be an even number of arguments representing key/value pairs of tags.- Returns:
- A new or existing counter.
-
gauge
Register a gauge that reports the value of theNumber.- Type Parameters:
T- The type of the number from which the gauge value is extracted.- Parameters:
name- Name of the gauge being registered.number- Thread-safe implementation ofNumberused to access the value.tags- Sequence of dimensions for breaking down the name.- Returns:
- The number that was passed in so the registration can be done as part of an assignment statement.
-
timer
Measures the time taken for short tasks and the count of these tasks.- Parameters:
name- The base metric nametags- MUST be an even number of arguments representing key/value pairs of tags.- Returns:
- A new or existing timer.
-
summary
Measures the distribution of samples.- Parameters:
name- The base metric nametags- MUST be an even number of arguments representing key/value pairs of tags.- Returns:
- A new or existing distribution summary.
-
tags
Return tags for currentWorkerTask. We don't include current state since it will break up the values per state which make no sense.- Parameters:
workerTask- the current WorkerTaskworkerGroup- the worker group, optional- Returns:
- tags to applied to metrics
-
tags
Return tags for currentWorkerTaskResult- Parameters:
workerTaskResult- the current WorkerTaskResult- Returns:
- tags to applied to metrics
-
tags
Return tags for currentTask- Parameters:
task- the current Task- Returns:
- tags to applied to metrics
-
tags
Return tags for currentExecution- Parameters:
execution- the current Execution- Returns:
- tags to applied to metrics
-
tags
Return tags for currentTriggerContext- Parameters:
triggerContext- the current TriggerContextworkerGroup- the worker group, optional- Returns:
- tags to applied to metrics
-
tags
Return tags for currentTriggerContext- Parameters:
triggerContext- the current TriggerContext- Returns:
- tags to applied to metrics
-
tags
Return tags for currentSchedulerExecutionWithTrigger.- Parameters:
schedulerExecutionWithTrigger- the current SchedulerExecutionWithTrigger- Returns:
- tags to applied to metrics
-
tags
Return globals tags- Returns:
- tags to applied to metrics
-
bind
public void bind(io.micrometer.core.instrument.binder.MeterBinder meterBinder) Attach aMeterBinderto current registry- Parameters:
meterBinder- theMeterBinderto bind to current registry
-