Module metrics

Module metrics 

Source
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§

BandwidthMetrics
Bandwidth metrics
BandwidthMetricsSnapshot
Bandwidth metrics snapshot
ConnectionMetrics
Connection metrics
ConnectionMetricsSnapshot
Connection metrics snapshot
DhtMetrics
DHT metrics
DhtMetricsSnapshot
DHT metrics snapshot
MetricsSnapshot
Complete metrics snapshot for serialization
NetworkMetrics
Network metrics collector
ProtocolMetrics
Protocol metrics

Functions§

new_shared_metrics
Create a new shared metrics instance

Type Aliases§

SharedMetrics
Thread-safe metrics handle