Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
- Constants
- Variables
- func CreatePrometheusCounterVecForControlPlaneMetric(r prometheus.Registerer, name, desc string, labels ...string) *prometheus.CounterVec
- func CreatePrometheusCounterVecForMetric(r prometheus.Registerer, name, desc string, labels ...string) *prometheus.CounterVec
- func CreatePrometheusGaugeVecForMetric(r prometheus.Registerer, name, desc string, labels ...string) *prometheus.GaugeVec
- func CreatePrometheusHistogramWithLinearBucketsForMetric(r prometheus.Registerer, name, desc string, start, width float64, count int) prometheus.Histogram
- func RegisterMetricsServeCallback(callback CallBackFunc)
- func ResetAdvancedMetricsRegistry()
- func UnregisterMetric(r prometheus.Registerer, metric prometheus.Collector)
- type CallBackFunc
Constants ¶
View Source
const (
RetinaNamespace = "networkobservability"
)
Variables ¶
View Source
var ( // CombinedGatherer is the combined registry for all metrics to be exposed by promhttp CombinedGatherer *prometheus.Registry // AdvancedRegistry is used for advanced metrics. This registry can be reset upon metrics config reconciliation AdvancedRegistry *prometheus.Registry DefaultRegistry *prometheus.Registry MetricsServeCallback CallBackFunc )
Functions ¶
func CreatePrometheusCounterVecForControlPlaneMetric ¶
func CreatePrometheusCounterVecForControlPlaneMetric(r prometheus.Registerer, name, desc string, labels ...string) *prometheus.CounterVec
func CreatePrometheusCounterVecForMetric ¶
func CreatePrometheusCounterVecForMetric(r prometheus.Registerer, name, desc string, labels ...string) *prometheus.CounterVec
func CreatePrometheusGaugeVecForMetric ¶
func CreatePrometheusGaugeVecForMetric(r prometheus.Registerer, name, desc string, labels ...string) *prometheus.GaugeVec
func CreatePrometheusHistogramWithLinearBucketsForMetric ¶
func CreatePrometheusHistogramWithLinearBucketsForMetric(r prometheus.Registerer, name, desc string, start, width float64, count int) prometheus.Histogram
func RegisterMetricsServeCallback ¶
func RegisterMetricsServeCallback(callback CallBackFunc)
func ResetAdvancedMetricsRegistry ¶
func ResetAdvancedMetricsRegistry()
func UnregisterMetric ¶
func UnregisterMetric(r prometheus.Registerer, metric prometheus.Collector)
Types ¶
type CallBackFunc ¶
type CallBackFunc func()
Click to show internal directories.
Click to hide internal directories.