metrics

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TagAskStatus is a tag for query-ask results.
	TagAskStatus, _ = tag.NewKey("askstatus")

	// MFullRefreshDuration is a metric for registering the total duration of a full
	// query ask refresh.
	MFullRefreshDuration = stats.Int64("askindex/fullrefresh-duration", "Duration of Full StorageAsk refresh", "s")
	// MFullRefreshProgress is a metric for registering the current progress of
	// the full scan query ask on miners.
	MFullRefreshProgress = stats.Float64("askindex/fullrefresh-progress", "Full refresh progress", "By")
	// MAskQueryResult is a metric to register the number of results per TagAskStatus status.
	MAskQueryResult = stats.Int64("askindex/queryask-result", "Ask query results", "By")
)

Functions

func Init

func Init() error

Init register all views.

Types

This section is empty.

Jump to

Keyboard shortcuts

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