Expand description
Network metrics collection and reporting
This module provides comprehensive network metrics tracking:
- Connection metrics (established, failed, duration)
- Bandwidth metrics (bytes sent/received)
- DHT metrics (queries, providers)
- Protocol metrics (messages sent/received by type)
- Prometheus export support
Structs§
- Bandwidth
Metrics - Bandwidth metrics
- Bandwidth
Metrics Snapshot - Bandwidth metrics snapshot
- Connection
Metrics - Connection metrics
- Connection
Metrics Snapshot - Connection metrics snapshot
- DhtMetrics
- DHT metrics
- DhtMetrics
Snapshot - DHT metrics snapshot
- Metrics
Snapshot - Complete metrics snapshot for serialization
- Network
Metrics - Network metrics collector
- Protocol
Metrics - Protocol metrics
Functions§
- new_
shared_ metrics - Create a new shared metrics instance
Type Aliases§
- Shared
Metrics - Thread-safe metrics handle