package
2.1.0-alpha.1+incompatible
Repository: https://github.com/gitql/vitess.git
Documentation: pkg.go.dev

# Packages

Package influxdbbackend is useful for publishing metrics to an InfluxDB backend (tested on v0.88).
Package promstats contains adapters to publish stats variables to prometheus (http://prometheus.io) */.

# Functions

CounterForDimension returns a CountTracker for the provided dimension.
NewCounters create a new Counters instance.
NewDuration returns a new Duration.
NewFloat creates a new Float and exports it.
NewGenericHistogram creates a histogram where all the labels are supplied by the caller.
NewHistogram creates a histogram with auto-generated labels based on the cutoffs.
NewInt returns a new Int.
NewMultiCounters creates a new MultiCounters instance, and publishes it if name is set.
NewMultiCountersFunc creates a new MultiCountersFunc mapping to the provided function.
NewMultiTimings creates a new MultiTimings object.
NewRates reports rolling rate information for countTracker.
No description provided by the author
NewString returns a new String.
NewStringMap returns a new StringMap.
NewTimings creates a new Timings object, and publishes it if name is set.
Publish is expvar.Publish+hook.
PublishJSONFunc publishes any function that returns a JSON string as a variable.
Register allows you to register a callback function that will be called whenever a new stats variable gets created.
RegisterPushBackend allows modules to register PushBackend implementations.

# Structs

Counters is similar to expvar.Map, except that it doesn't allow floats.
Duration exports a time.Duration.
Float is expvar.Float+Get+hook.
Histogram tracks counts and totals while splitting the counts under different buckets using specified cutoffs.
Int is expvar.Int+Get+hook.
MultiCounters is a multidimensional Counters implementation where names of categories are compound names made with joining multiple strings with '.'.
MultiCountersFunc is a multidimensional CountersFunc implementation where names of categories are compound names made with joining multiple strings with '.'.
MultiTimings is meant to tracks timing data by categories as well as histograms.
Rates is capable of reporting the rate (typically QPS) for any variable that satisfies the CountTracker interface.
Ring of int64 values Not thread safe.
String is expvar.String+Get+hook.
StringMap is a map of string -> string.
Timings is meant to tracks timing data by named categories as well as histograms.

# Interfaces

CountTracker defines the interface that needs to be supported by a variable for being tracked by Rates.
MultiTracker is a CountTracker that tracks counts grouping them by more than one dimension.
PushBackend is an interface for any stats/metrics backend that requires data to be pushed to it.

# Type aliases

CountersFunc converts a function that returns a map of int64 as an expvar.
DurationFunc converts a function that returns an time.Duration as an expvar.
FloatFunc converts a function that returns a float64 as an expvar.
IntFunc converts a function that returns an int64 as an expvar.
JSONFunc is the public type for a single function that returns json directly.
NewVarHook is the type of a hook to export variables in a different way.
StringFunc converts a function that returns an string as an expvar.
StringMapFunc is the function equivalent of StringMap.