metrics

package
v0.0.0-...-9135e14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL