metrics

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeepMetricsEnabled = false

Functions

func NewAuthConfigCounterMetric

func NewAuthConfigCounterMetric(name, help string, extraLabels ...string) *prometheus.CounterVec

func NewAuthConfigDurationMetric

func NewAuthConfigDurationMetric(name, help string, extraLabels ...string) *prometheus.HistogramVec

func NewCounterMetric

func NewCounterMetric(name, help string, labels ...string) *prometheus.CounterVec

func NewDurationMetric

func NewDurationMetric(name, help string, labels ...string) *prometheus.HistogramVec

func Register

func Register(metrics ...prometheus.Collector)

func ReportMetric

func ReportMetric(metric *prometheus.CounterVec, labels ...string)

func ReportMetricWithObject

func ReportMetricWithObject(metric *prometheus.CounterVec, obj Object, labels ...string)

func ReportMetricWithStatus

func ReportMetricWithStatus(metric *prometheus.CounterVec, status string, labels ...string)

func ReportTimedMetric

func ReportTimedMetric(metric *prometheus.HistogramVec, f func(), labels ...string)

func ReportTimedMetricWithObject

func ReportTimedMetricWithObject(metric *prometheus.HistogramVec, f func(), obj Object, labels ...string)

func ReportTimedMetricWithStatus

func ReportTimedMetricWithStatus(metric *prometheus.HistogramVec, f func(), status string, labels ...string)

Types

type Object

type Object interface {
	GetType() string
	GetName() string
	MetricsEnabled() bool
}

Directories

Path Synopsis
Package mock_metrics is a generated GoMock package.
Package mock_metrics is a generated GoMock package.

Jump to

Keyboard shortcuts

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