Skip to main content

Variable: workerMetrics

const workerMetrics: object

Defined in: src/observability/prometheus-registry.ts:604

Pre-defined metrics for background worker tasks.

Type declaration​

activeCount​

activeCount: Gauge<"worker">

Currently active workers gauge.

Remarks​

Labels: worker

queueDepth​

queueDepth: Gauge<"worker">

Current worker queue depth gauge.

Remarks​

Labels: worker

taskDuration​

taskDuration: Histogram<"worker">

Worker task duration histogram.

Remarks​

Labels: worker Buckets: 10ms to 30s

tasksTotal​

tasksTotal: Counter<"status" | "worker">

Total worker tasks processed counter.

Remarks​

Labels: worker, status (success/error)

Remarks​

Tracks worker task counts, duration, queue depth, and active counts.