Documentation ¶
Index ¶
- func CountDesc(metric *prometheus.CounterVec, lvs ...string)
- func CountInc(err error, totalMetric *prometheus.CounterVec, ...)
- func CountSet(metric *prometheus.GaugeVec, val float64, lvs ...string)
- func Duration(err error, metric *prometheus.HistogramVec, start time.Time, lvs ...string)
- type ConversionMetric
- type OpWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountDesc ¶
func CountDesc(metric *prometheus.CounterVec, lvs ...string)
func CountInc ¶
func CountInc(err error, totalMetric *prometheus.CounterVec, errorMetric *prometheus.CounterVec, lvs ...string)
func Duration ¶
func Duration(err error, metric *prometheus.HistogramVec, start time.Time, lvs ...string)
Types ¶
type OpWrapper ¶
type OpWrapper struct { OpDuration *prometheus.HistogramVec OpTotal *prometheus.CounterVec OpErrorTotal *prometheus.CounterVec }
func NewOpWrapper ¶
Click to show internal directories.
Click to hide internal directories.