package
2.1.0+incompatible
Repository: https://github.com/iost-official/go-ios-protocol.git
Documentation: pkg.go.dev

# Functions

InitMetrics inits the defaultClient.
NewClient returns a new Client.
NewCounter returns a counter-type metrics.
NewGauge returns a gauge-type metrics.
NewPromCounter returns a instance of PromCounter.
NewPromGauge returns a instance of PromGauge.
NewPromSummary returns a instance of PromSummary.
NewSummary returns a summary-type metrics.
SetID sets the ID of metrics client.
SetPusher sets the pusher with the given addr.
Start starts the pusher loop.
Stop stops the pusher loop.

# Variables

# Structs

Client is the struct responsible for sending different type of metrics.
PromCounter is the implementation of Counter with prometheus's CounterVec.
PromGauge is the implementation of Gauge with prometheus's GaugeVec.
PromSummary is the implementation of Summary with prometheus's SummaryVec.

# Interfaces

Counter defines the API of counter-type metrics.
Gauge defines the API of gauge-type metrics.
Summary defines the API of summary-type metrics.