Documentation ¶
Overview ¶
Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core/metrics.
Package metrics provides metrics collection and reporting interfaces for libp2p.
Package metrics provides metrics collection and reporting interfaces for libp2p.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BandwidthCounter ¶
type BandwidthCounter = metrics.BandwidthCounter
BandwidthCounter tracks incoming and outgoing data transferred by the local peer. Metrics are available for total bandwidth across all peers / protocols, as well as segmented by remote peer ID and protocol ID. Deprecated: use github.com/libp2p/go-libp2p/core/metrics.BandwidthCounter instead
func NewBandwidthCounter ¶
func NewBandwidthCounter() *BandwidthCounter
NewBandwidthCounter creates a new BandwidthCounter. Deprecated: use github.com/libp2p/go-libp2p/core/metrics.NewBandwidthCounter instead
type Reporter ¶
Reporter provides methods for logging and retrieving metrics. Deprecated: use github.com/libp2p/go-libp2p/core/metrics.Reporter instead