exporter

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

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()

Jump to

Keyboard shortcuts

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