Documentation ¶
Index ¶
- func BuildConstLabels(serviceInfo *configuration.ServiceInfo, serviceAddr string) (labels prometheus.Labels)
- func NewCounterVec(opt CollectorOpt, labelNames []string) *prometheus.CounterVec
- func NewGaugeVec(opt CollectorOpt, labelNames []string) *prometheus.GaugeVec
- func NewHistogramVec(opt CollectorOpt, buckets []float64, labelNames []string) *prometheus.HistogramVec
- func NewSummaryVec(opt CollectorOpt, maxAge time.Duration, ageBuckets uint32, bufCap uint32, ...) *prometheus.SummaryVec
- func RegisterMetrics(c prometheus.Collector) error
- func UnregisterMetrics(c prometheus.Collector) bool
- type CollectorOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConstLabels ¶
func BuildConstLabels(serviceInfo *configuration.ServiceInfo, serviceAddr string) (labels prometheus.Labels)
func NewCounterVec ¶
func NewCounterVec(opt CollectorOpt, labelNames []string) *prometheus.CounterVec
func NewGaugeVec ¶
func NewGaugeVec(opt CollectorOpt, labelNames []string) *prometheus.GaugeVec
func NewHistogramVec ¶
func NewHistogramVec(opt CollectorOpt, buckets []float64, labelNames []string) *prometheus.HistogramVec
func NewSummaryVec ¶
func NewSummaryVec(opt CollectorOpt, maxAge time.Duration, ageBuckets uint32, bufCap uint32, labelNames []string) *prometheus.SummaryVec
func RegisterMetrics ¶
func RegisterMetrics(c prometheus.Collector) error
func UnregisterMetrics ¶
func UnregisterMetrics(c prometheus.Collector) bool
Types ¶
type CollectorOpt ¶
type CollectorOpt struct { Namespace string Subsystem string Name string ConstLabels prometheus.Labels }
Click to show internal directories.
Click to hide internal directories.