Rust referenceweave-swarm
weave-swarm · metrics
Source declarations, signatures and documentation for metrics.
Source: sigil/weave/network/weave-swarm/src/metrics.rs. SHA-256: f8d0bdf2292dd335be5f39d9fbe81b47ada4cf7f94e94de46b1438e6bf998aee.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
metrics::SwarmMetrics
#[derive(Debug, Default)]
pub struct SwarmMetrics {
pub connections_total: AtomicU64,
pub disconnections_total: AtomicU64,
pub join_events_total: AtomicU64,
pub leave_events_total: AtomicU64,
pub keepalives_sent_total: AtomicU64
}Source line: 6.
metrics::SwarmMetrics::export_prometheus_text
pub fn export_prometheus_text(&self, namespace: &str) -> String;Source line: 15.