arbiter-otel-0.1.0.0
arbiter-otel
Safe HaskellNone
LanguageGHC2024

Arbiter.Otel.MetricNames

Description

The names of the instruments arbiter registers.

Synopsis

Documentation

data MetricNameSource #

Every instrument the library registers. A job's kind attribute is absent when its label is not declared.

Constructors

JobsClaimed

Counter, no unit. Attributes: queue, kind.

JobsProcessed

Counter, no unit. Attributes: queue, outcome (success, dlq, cancelled, unavailable), kind.

JobsRetried

Counter, no unit. Attributes: queue, kind.

AdmissionAdmitted

Counter, no unit. Attributes: queue, policy_kind, policy.

MaintenanceRows

Counter, no unit. Attributes: op.

HandlerDuration

Histogram, s. Attributes: queue, outcome (success, failure), kind.

QueueDepth

Gauge, {job}. Attributes: queue, status (ready, blocked, in_flight, scheduled, backoff, throttled, suspended, cancelled, exhausted).

QueueDepthByKind

Gauge, {job}. Attributes: queue, kind.

QueueOldestReadyAge

Gauge, s. Attributes: queue.

QueueOldestInFlightAge

Gauge, s. Attributes: queue.

Workers

Gauge, {worker}. Attributes: queue, state (active, paused).

AdmissionKeys

Gauge, {key}. Attributes: policy_kind, policy.

AdmissionLimit

Gauge, {admission}, in concurrency slots or rate-limit tokens. Attributes: policy_kind, policy.

AdmissionInFlight

Gauge, {job}. Attributes: policy.

AdmissionBusiestKey

Gauge, {job}. Attributes: policy.

AdmissionTokens

Gauge, {token}. Attributes: policy, stat (min, avg).

PgTableDeadTuples

Gauge, {tuple}. Attributes: table.

PgTableLiveTuples

Gauge, {tuple}. Attributes: table.

PgTableVacuumAge

Gauge, s. Attributes: table.

PgTableSize

Gauge, By. Attributes: table.

PgTableScans

Counter, {scan}. Attributes: table, path (seq, index).

PgTableBlocks

Counter, {block}. Attributes: table, source (hit, disk).

PgTableXidAge

Gauge, {transaction}. Attributes: table.

PgDbConnections

Gauge, {connection}. Attributes: state (active, idle, idle_in_transaction, idle_in_transaction_aborted, blocked, other).

PgDbBackends

Gauge, {backend}. No attributes.

PgDbOldestTransactionAge

Gauge, s. No attributes.

PgDbOldestQueryAge

Gauge, s. No attributes.

DbReachable

Gauge, 1, 1 when reachable and 0 when not. No attributes.

GaugesAge

Gauge, s. No attributes.

metricName :: MetricName -> TextSource #

The exported name of a metric.

arbiterMetricNames :: [Text]Source #

Every metric name arbiter exports.