Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetRegistry ¶
func SetRegistry(r Registry)
SetRegistry may be used to reset the global metric registry, which should not be needed unless for testing purposes.
Types ¶
type Float64Entry ¶
type Float64Entry struct {
// contains filtered or unexported fields
}
type Float64Gauge ¶
type Float64Gauge struct {
// contains filtered or unexported fields
}
func NewFloat64Gauge ¶
func NewFloat64Gauge(name string, mos ...Option) *Float64Gauge
func (*Float64Gauge) DefinitionID ¶
func (g *Float64Gauge) DefinitionID() core.EventID
func (*Float64Gauge) Gauge ¶
func (g *Float64Gauge) Gauge(values ...core.KeyValue) Float64Entry
func (*Float64Gauge) Type ¶
func (bm *Float64Gauge) Type() MetricType
type MetricType ¶
type MetricType int
const ( Invalid MetricType = iota GaugeInt64 GaugeFloat64 DerivedGaugeInt64 DerivedGaugeFloat64 CumulativeInt64 CumulativeFloat64 DerivedCumulativeInt64 DerivedCumulativeFloat64 )
type Option ¶
func WithDescription ¶
WithDescription applies provided description.
type Registry ¶
type Registry interface { RegisterMetric(Metric) (Metric, error) ForeachMetric(func(string, Metric)) }
Registry is a mechanism for avoiding duplicate registration of different-type pre-aggregated metrics (in one process).
func GetRegistry ¶
func GetRegistry() Registry
GetRegistry may be used to access a global list of metric definitions.
Click to show internal directories.
Click to hide internal directories.