Documentation ¶
Overview ¶
Package prom contains some utility functions for dealing with prometheus metrics.
Index ¶
- func CopyLabels(labels prometheus.Labels) prometheus.Labels
- func NewCounter(namespace, subsystem, name, help string, constLabels prometheus.Labels) prometheus.Counter
- func NewCounterVec(namespace, subsystem, name, help string, constLabels prometheus.Labels, ...) *prometheus.CounterVec
- func NewGauge(namespace, subsystem, name, help string, constLabels prometheus.Labels) prometheus.Gauge
- func NewGaugeVec(namespace, subsystem, name, help string, constLabels prometheus.Labels, ...) *prometheus.GaugeVec
- func NewHistogramVec(namespace, subsystem, name, help string, constLabels prometheus.Labels, ...) *prometheus.HistogramVec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyLabels ¶
func CopyLabels(labels prometheus.Labels) prometheus.Labels
func NewCounter ¶
func NewCounter(namespace, subsystem, name, help string, constLabels prometheus.Labels) prometheus.Counter
func NewCounterVec ¶
func NewCounterVec(namespace, subsystem, name, help string, constLabels prometheus.Labels, labelNames []string) *prometheus.CounterVec
func NewGauge ¶
func NewGauge(namespace, subsystem, name, help string, constLabels prometheus.Labels) prometheus.Gauge
func NewGaugeVec ¶
func NewGaugeVec(namespace, subsystem, name, help string, constLabels prometheus.Labels, labelNames []string) *prometheus.GaugeVec
func NewHistogramVec ¶
func NewHistogramVec(namespace, subsystem, name, help string, constLabels prometheus.Labels, labelNames []string, buckets []float64) *prometheus.HistogramVec
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.