Versions in this module Expand all Collapse all v0 v0.25.1 Mar 8, 2025 Changes in this version + type Exporter struct + func (e *Exporter) Export() *protos.MetricUpdate + type Importer struct + func (i *Importer) Import(update *protos.MetricUpdate) ([]*MetricSnapshot, error) + type Metric struct + func Register(typ protos.MetricType, name string, help string, bounds []float64) *Metric + func (m *Metric) Add(delta float64) + func (m *Metric) Inc() + func (m *Metric) MetricDef() *protos.MetricDef + func (m *Metric) MetricValue() *protos.MetricValue + func (m *Metric) Name() string + func (m *Metric) Put(val float64) + func (m *Metric) Set(val float64) + func (m *Metric) Snapshot() *MetricSnapshot + func (m *Metric) Sub(delta float64) + type MetricMap struct + func RegisterMap[L comparable](typ protos.MetricType, name string, help string, bounds []float64) *MetricMap[L] + func (mm *MetricMap[L]) Get(labels L) *Metric + func (mm *MetricMap[L]) Name() string + type MetricSnapshot struct + Bounds []float64 + Counts []uint64 + Help string + Id uint64 + Labels map[string]string + Name string + Type protos.MetricType + Value float64 + func Snapshot() []*MetricSnapshot + func UnProto(m *protos.MetricSnapshot) *MetricSnapshot + func (m *MetricSnapshot) Clone() *MetricSnapshot + func (m *MetricSnapshot) MetricDef() *protos.MetricDef + func (m *MetricSnapshot) MetricValue() *protos.MetricValue + func (m *MetricSnapshot) ToProto() *protos.MetricSnapshot