Skip to main content

Module metrics

Module metrics 

Source
Expand description

Prometheus text exposition for guard metrics.

Structs§

GuardMetricFamily
MetricsEndpointResponse

Enums§

PrometheusMetricKind
Prometheus metric family kind.

Constants§

GUARD_METRICS_PATH
GUARD_METRIC_FAMILIES
METRIC_CHIO_OTEL_INGRESS_DROP_TOTAL
METRIC_CHIO_OTEL_SINK_DROP_TOTAL
PROMETHEUS_TEXT_CONTENT_TYPE

Functions§

guard_metrics_endpoint
record_receipt_health_gauges
Turn a receipt-store health report into the watchdog gauges: the uncheckpointed entry_seq range and the seconds since the last commit. A serve-mode watchdog loop calls this on an interval so uncheckpointed growth and checkpoint staleness are observable without a human chio receipt health run.
render_guard_metrics_prometheus
Render the kernel /metrics body from the chio-metrics-spec runtime families. The kernel renders the guard families and the two OTEL-drop families (whose sole producers are chio-wasm-guards and the OTLP ingress, which cannot be depended on by the kernel), the signing-queue block family, the settlement unresolved family, the ambiguous-dispatch retained-hold family, and receipt watchdog gauges. Every sample comes from its shared runtime family rather than a fixed zero.