RaftEx.Infra.Observability.MetricNames (raft_ex v0.6.0)

View Source

Catalogue of all RaftEx metric names and their kinds.

Single source of truth for metric atoms used by both the ETS-backed RaftEx.Infra.Observability.Metrics store and the compatibility RaftEx.Infra.Observability.Counters layer.

Summary

Functions

Return all {name, kind} pairs.

Return the kind for a metric name, or nil.

Return all metric names.

Functions

all()

@spec all() :: [{atom(), atom()}]

Return all {name, kind} pairs.

kind(name)

@spec kind(atom()) :: atom() | nil

Return the kind for a metric name, or nil.

names()

@spec names() :: [atom()]

Return all metric names.