Versions in this module Expand all Collapse all v0 v0.1.3 Jan 16, 2024 Changes in this version + func AttrGaugeAdd(metric AttrType) + func AttrGaugeInc(metric AttrType) + func AttrGaugeSet(metric AttrType) + func AttrGaugeSub(metric AttrType) + func DefaultParseAttrName(name string) string + func GetCounter(prefix, name string, constLabel prometheus.Labels, publicKeys, rfTags []string) prometheus.Counter + func GetCounterVec(prefix, name string, constLabel prometheus.Labels, publicKeys, rfTags []string) *prometheus.CounterVec + func GetGauge(prefix, name string, constLabel prometheus.Labels, publicKeys, rfTags []string) prometheus.Gauge + func GetGaugeVec(prefix, name string, constLabel prometheus.Labels, publicKeys, rfTags []string) *prometheus.GaugeVec + func GetHistogram(prefix, name string, constLabel prometheus.Labels, publicKeys, rfTags []string) prometheus.Histogram + func GetHistogramVec(prefix, name string, constLabel prometheus.Labels, publicKeys, rfTags []string) *prometheus.HistogramVec + func GetSummary(prefix, name string, constLabel prometheus.Labels, publicKeys, rfTags []string) prometheus.Summary + func GetSummaryVec(prefix, name string, constLabel prometheus.Labels, publicKeys, rfTags []string) *prometheus.SummaryVec + func InitMetrics(prefix string, Metrics interface{}, labels prometheus.Labels, ...) + func InitMetrics2(prefix string, Metrics interface{}, labels prometheus.Labels, ...) + type AttrType interface + AttrValue func() int + type Counter int + func (c Counter) Add(metric AttrType, value int) + func (c Counter) AttrValue() int + func (c Counter) GetMetricWith(labels prometheus.Labels) (prometheus.Counter, error) + func (c Counter) GetMetricWithLabelValues(lvs ...string) (prometheus.Counter, error) + func (c Counter) Inc() + func (c Counter) With(labels prometheus.Labels) prometheus.Counter + func (c Counter) WithLabelValues(lvs ...string) prometheus.Counter + type Gauge int + func (c Gauge) AttrValue() int + type Histogram int + func (c Histogram) AttrValue() int + type ParseAttrNameFunc func(string) string + var ParseAttrName ParseAttrNameFunc = nil + type Summary int + func (c Summary) AttrValue() int v0.1.2 Apr 28, 2019