Weave Swarm
Metrics
Swarm::export_metrics_text(namespace) exposes the collected Prometheus text through the swarm.
Workflow and current contract
Swarm::export_metrics_text(namespace) exposes the collected Prometheus text through the swarm. Per-connection ConnectionStats accounts for duration and sent/received bytes. Use connection_count and topic_count for current local counts.
Metrics are observations of this process. A counter or active connection does not independently establish successful replication, durable storage, or an authorized application action.
Source reference
metricsdeclarations —network/weave-swarm/src/metrics.rs.swarmdeclarations —network/weave-swarm/src/swarm.rs.connectiondeclarations —network/weave-swarm/src/connection.rs.