Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NonNegativeBuckets = []float64{
10, 20, 50,
100, 200, 500,
1000, 2000, 5000,
10000, 20000, 50000,
100000, 200000, 500000,
1000000, 2000000, 5000000,
10000000, 20000000, 50000000,
100000000, 200000000, 500000000,
1000000000, 2000000000, 5000000000,
10000000000, 20000000000, 50000000000,
100000000000, 200000000000, 500000000000,
1000000000000, 2000000000000, 5000000000000,
10000000000000, 20000000000000, 50000000000000,
100000000000000, 200000000000000, 500000000000000,
1000000000000000, 2000000000000000, 5000000000000000,
10000000000000000, 20000000000000000, 50000000000000000,
100000000000000000, 200000000000000000, 500000000000000000,
1000000000000000000, 2000000000000000000, 5000000000000000000,
10000000000000000000, 20000000000000000000, 50000000000000000000,
}
Functions ¶
This section is empty.
Types ¶
type CounterMap ¶
type CounterMap[L comparable] struct { // contains filtered or unexported fields }
func NewCounterMap ¶
func NewCounterMap[L comparable](name string) *CounterMap[L]
func (*CounterMap[L]) Get ¶
func (cm *CounterMap[L]) Get(labels L) *Counter
func (*CounterMap[L]) Name ¶
func (cm *CounterMap[L]) Name() string
type GaugeMap ¶
type GaugeMap[L comparable] struct { // contains filtered or unexported fields }
func NewGaugeMap ¶
func NewGaugeMap[L comparable](name string) *GaugeMap[L]
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
func NewHistogram ¶
type HistogramMap ¶
type HistogramMap[L comparable] struct { // contains filtered or unexported fields }
func NewHistogramMap ¶
func NewHistogramMap[L comparable](name string, bounds []float64) *HistogramMap[L]
func (*HistogramMap[L]) Get ¶
func (gm *HistogramMap[L]) Get(labels L) *Histogram
func (*HistogramMap[L]) Name ¶
func (gm *HistogramMap[L]) Name() string
type MetricMap ¶
type MetricMap[L comparable] struct { // contains filtered or unexported fields }
MetricMap 相同 name 和 label 格式但具体 label 的值不同的 metric 合集
func RegisterMap ¶
func RegisterMap[L comparable](typ MetricType, name string, bounds []float64) *MetricMap[L]
type MetricSnapshot ¶
type MetricSnapshot struct { Id uint64 Name string Typ MetricType Labels map[string]string Value float64 Bounds []float64 Counts []uint64 }
func Snapshot ¶
func Snapshot() []*MetricSnapshot
func (*MetricSnapshot) Clone ¶
func (m *MetricSnapshot) Clone() *MetricSnapshot
type MetricType ¶
type MetricType int32
const ( MetricTypeInvalid MetricType = iota MetricTypeCounter MetricTypeGauge MetricTypeHistogram )
Click to show internal directories.
Click to hide internal directories.