Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct { Type MetricType Name string Description string Labels []string Buckets []float64 Objectives map[float64]float64 // contains filtered or unexported fields }
Metric 定义度量对象, 用户可以使用它来保存度量数据,每个指标都应该是全局唯一的
type MetricType ¶
type MetricType int
const ( None MetricType = iota Counter Gauge Histogram Summary )
Click to show internal directories.
Click to hide internal directories.