The rollup node should have telemetry for both debugging and prod usage.
We should start with a standard fmt + prometheus stack to collect both traces and metrics:
Metrics collection: Use metrics crate to gather crate performance / monitoring data.
Prometheus: Set up a Prometheus subscriber to expose metrics via a /metrics endpoint.
Fmt Layer: Add structured logging with a fmt layer for human-readable logs.
CLI Configuration
Add a CLI flag (e.g., --metrics) to toggle prometheus.
Allow configuration of the Prometheus port via --telemetry-port=.
Tasks
Integrate metrics and metrics-exporter-prometheus.
Set up Prometheus exposition and logging with fmt.
Add CLI flags for telemetry control.
Test and document the telemetry functionality.
NOTE: some metrics will be especially useful for debugging. Here is one example to keep in mind.
Description
The rollup node should have telemetry for both debugging and prod usage. We should start with a standard
fmt
+prometheus
stack to collect both traces and metrics:metrics
crate to gather crate performance / monitoring data./metrics
endpoint.CLI Configuration
Tasks
NOTE: some metrics will be especially useful for debugging. Here is one example to keep in mind.