metrics

package
Version: v0.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 1 Imported by: 130

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

type Reporter = metrics.Reporter

Reporter provides methods for logging and retrieving metrics. Deprecated: use github.com/libp2p/go-libp2p/core/metrics.Reporter instead

type Stats

type Stats = metrics.Stats

Stats represents a point-in-time snapshot of bandwidth metrics.

The TotalIn and TotalOut fields record cumulative bytes sent / received. The RateIn and RateOut fields record bytes sent / received per second. Deprecated: use github.com/libp2p/go-libp2p/core/metrics.Stats instead

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL