Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSummaryVec ¶
func NewSummaryVec(opts *SummaryOpts) *summaryVec
Types ¶
type CounterVec ¶
type CounterVec interface { Inc(labels ...string) Add(v float64, labels ...string) GetMetric(labels ...string) (prometheus.Counter, error) // contains filtered or unexported methods }
计数器
func CreateMetricCount ¶
func CreateMetricCount(name string, labels ...string) CounterVec
func NewCounterVec ¶
func NewCounterVec(opts *CounterVecOpts) CounterVec
type CounterVecOpts ¶
type CounterVecOpts VectorOpts
type GaugeVec ¶
type GaugeVec interface { Set(v float64, labels ...string) Inc(labels ...string) Add(v float64, labels ...string) // contains filtered or unexported methods }
测量仪
func CreateMetricGauge ¶
func NewGaugeVec ¶
func NewGaugeVec(opts *GaugeVecOpts) GaugeVec
type GaugeVecOpts ¶
type GaugeVecOpts VectorOpts
type HistogramVec ¶
type HistogramVec interface { Observe(v float64, labels ...string) // contains filtered or unexported methods }
直方图
func CreateMetricHistogram ¶
func CreateMetricHistogram(name string, buckets []float64, labels ...string) HistogramVec
func NewHistogramVec ¶
func NewHistogramVec(opts *HistogramVecOpts) HistogramVec
type HistogramVecOpts ¶
type SummaryOpts ¶
type SummaryVec ¶
type SummaryVec interface { Observe(v int64, labels ...string) // contains filtered or unexported methods }
汇总
func CreateMetricSummary ¶
func CreateMetricSummary(name string, objectives map[float64]float64, labels ...string) SummaryVec
Click to show internal directories.
Click to hide internal directories.