Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Namespace = "dodo" Subsystem = "go" )
prometheus related param
View Source
var CounterVec = &counter{m: newMetric(cv)}
CounterVec is promteheus counterVec
View Source
var GaugeVec = &gauge{m: newMetric(gv)}
GaugeVec is promteheus gaugeVec
View Source
var HistogramVec = &histogram{m: newMetric(hv)}
HistogramVec is promteheus histogramVec
View Source
var SummaryVec = &summary{m: newMetric(sv)}
SummaryVec is promteheus summaryVec
Functions ¶
func AddConstLabels ¶
AddConstLabels add const kv into promethues
func AddHistogramBucket ¶
AddHistogramBucket config histogramBuckets, it's not thread safe, should initialize first it will append +Inf as last element if not exist
func AddMetricDescription ¶
AddMetricDescription add metric desc, it's not thread safe, should initialize first
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.