github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/metrics/registry.go (about) 1 package metrics 2 3 // Registry is experimental interface for metrics registry 4 type Registry interface { 5 // CounterVec returns CounterVec by name, subsystem and labels 6 // If counter by args already created - return counter from cache 7 // If counter by args nothing - create and return newest counter 8 CounterVec(name string, labelNames ...string) CounterVec 9 10 // GaugeVec returns GaugeVec by name, subsystem and labels 11 // If gauge by args already created - return gauge from cache 12 // If gauge by args nothing - create and return newest gauge 13 GaugeVec(name string, labelNames ...string) GaugeVec 14 15 // TimerVec returns TimerVec by name, subsystem and labels 16 // If timer by args already created - return timer from cache 17 // If timer by args nothing - create and return newest timer 18 TimerVec(name string, labelNames ...string) TimerVec 19 20 // HistogramVec returns HistogramVec by name, subsystem and labels 21 // If histogram by args already created - return histogram from cache 22 // If histogram by args nothing - create and return newest histogram 23 HistogramVec(name string, buckets []float64, labelNames ...string) HistogramVec 24 }