Skip to main content

Module delivery_metrics

Module delivery_metrics 

Source
Expand description

Aggregate delivery latency and outcome metrics.

These answer “is push slow?” and “is push reliable?” for all traffic without tracking individual messages. Latency is recorded in Prometheus histograms (served from /metrics) so quantiles can be aggregated across pods and time windows. Terminal outcomes are statsd counters (notification.outcome).

Structs§

DeliveryMetrics
The process wide Prometheus registry and the histograms it holds.

Enums§

Cause
Who is responsible for a non-delivery.
DeliveryPath
The destination router of a notification.
DeliveryRoute
Whether the notification was read from storage before delivery.
Outcome
The terminal status of a notification.

Constants§

CONTENT_TYPE
Content type for the /metrics response.
DELIVERY_BUCKETS
Latency histogram bucket boundaries, in seconds.

Functions§

emit_outcome
Increment notification.outcome.
emit_outcomes
Add count to notification.outcome.