Skip to main content

Variable: authMetrics

const authMetrics: object

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

Pre-defined metrics for authentication operations.

Type declaration

attemptsTotal

attemptsTotal: Counter<"method" | "result">

Total authentication attempts counter.

Remarks

Labels: method (service_auth), result (success/failure/anonymous)

duration

duration: Histogram<"method">

Authentication duration histogram.

Remarks

Labels: method (service_auth) Buckets: 10ms to 5s

roleLookups

roleLookups: Counter<"result">

Total role lookups counter.

Remarks

Labels: result (cache_hit/cache_miss)

Remarks

Tracks auth attempts, duration, and role lookups.