package
0.79.0-preview.4
Repository: https://github.com/vegaprotocol/vega.git
Documentation: pkg.go.dev
# Functions
AgeBuckets - specific to summary type.
APIRequestAndTimeGraphQL updates the metrics for GraphQL API calls.
APIRequestAndTimeGRPC updates the metrics for GRPC API calls.
APIRequestAndTimeREST updates the metrics for REST API calls.
Buckets - specific to histogram type.
BufCap - specific to summary type.
DataSourceEthVerifierCallCounterInc increments the order counter.
DataSourceEthVerifierCallGaugeAdd increments the eth verified calls.
No description provided by the author
EthCallInc increments the eth call counter.
EthereumRPCCallCounterInc increments the order counter.
EvtForwardInc increments the evt forward counter.
Help - set the help field on instrument.
Labels set labels for instrument (similar to vector, but with given values).
MaxAge - specific to summary type.
Namespace - set namespace.
NewDefaultConfig creates an instance of the package specific configuration, given a pointer to a logger instance to be used for logging within the package.
NewTimeCounter returns a new TimeCounter, with the start time already recorded.
Objectives - specific to summary type.
OrderCounterInc increments the order counter.
OrderGaugeAdd increment the order gauge.
No description provided by the author
No description provided by the author
Start enable metrics (given config).
StartAPIRequestAndTimeGRPC updates the metrics for GRPC API calls.
No description provided by the author
Subsystem - set subsystem..
UnconfirmedTxGaugeSet update the number of unconfirmed transactions.
Vectors - configuration used to create a vector of a given interface, slice of label names.
# Variables
ErrInstrumentNotSupported signals the specified instrument is not yet supported.
ErrInstrumentTypeMismatch signal the type of the instrument is not expected.
# Structs
Config represents the configuration of the metric package.
TimeCounter holds a time.Time and a list of label values, hiding the start time from being accidentally overwritten, and removing the need to duplicate the label values.
# Interfaces
MetricInstrument - template interface for mi type return value - only mock if needed, and only mock the funcs you use.
# Type aliases
InstrumentOption - vararg for instrument options setting.