Categorygithub.com/libp2p/go-flow-metrics
modulepackage
0.2.0
Repository: https://github.com/libp2p/go-flow-metrics.git
Documentation: pkg.go.dev

# README

go-flow-metrics

Discourse posts

A simple library for tracking flow metrics.

A simple alternative to rcrowley's go-metrics that's a lot faster (and only does simple bandwidth metrics).

# Functions

NewMeter returns a new Meter with the correct idle time.
SetClock sets a clock to use in the sweeper.

# Variables

IdleRate the rate at which we declare a meter idle (and stop tracking it until it's re-registered).

# Structs

Meter is a meter for monitoring a flow.
MeterRegistry is a registry for named meters.
Snapshot is a rate/total snapshot.