Documentation ¶
Overview ¶
Package meter is for instrumentation
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // The Meter data will be made available on this port DefaultAddress = ":9090" // This is the endpoint where the Meter data will be made available ("/metrics" is the default) DefaultPath = "/metrics" )
Functions ¶
This section is empty.
Types ¶
type FloatCounter ¶ added in v3.1.4
FloatCounter is a float64 counter
type Histogram ¶ added in v3.1.4
Histogram is a histogram for non-negative values with automatically created buckets
type Meter ¶ added in v3.1.4
type Meter interface { Init(...Option) error Counter(string, metadata.Metadata) Counter FloatCounter(string, metadata.Metadata) FloatCounter Gauge(string, func() float64, metadata.Metadata) Gauge Set(metadata.Metadata) Meter Histogram(string, metadata.Metadata) Histogram Summary(string, metadata.Metadata) Summary SummaryExt(string, time.Duration, []float64, metadata.Metadata) Summary Options() Options String() string }
Meter is an interface for collecting and instrumenting metrics
type Option ¶
type Option func(*Options)
Option powers the configuration for metrics implementations:
Click to show internal directories.
Click to hide internal directories.