metricsstore

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package metricsstore implements a Prometheus metrics store for OSM's control plane metrics.

Index

Constants

This section is empty.

Variables

View Source
var DefaultMetricsStore = &defaultMetricsStore

DefaultMetricsStore is the default metrics store

Functions

This section is empty.

Types

type MetricsStore added in v0.7.0

type MetricsStore struct {

	/*
	 * K8s metrics
	 */
	// K8sAPIEventCounter is the metric counter for the number of K8s API events
	K8sAPIEventCounter *prometheus.CounterVec

	/*
	 * Proxy metrics
	 */
	// ProxyConnectCount is the metric for the total number of proxies connected to the controller
	ProxyConnectCount prometheus.Gauge

	// ProxyReconnectCount is the metric for the total reconnects from known proxies to the controller
	ProxyReconnectCount prometheus.Counter

	// ProxyConfigUpdateTime is the histogram to track time spent for proxy configuration and its occurrences
	ProxyConfigUpdateTime *prometheus.HistogramVec

	// ProxyBroadcastEventCounter is the metric for the total number of ProxyBroadcast events published
	ProxyBroadcastEventCount prometheus.Counter

	/*
	 * Injector metrics
	 */
	// InjectorSidecarCount counts the number of injector webhooks dealt with over time
	InjectorSidecarCount prometheus.Counter

	// InjectorRqTime the histogram to track times for the injector webhook calls
	InjectorRqTime *prometheus.HistogramVec

	/*
	 * Certificate metrics
	 */
	// CertIssuedCount is the metric counter for the number of certificates issued
	CertIssuedCount prometheus.Counter

	// CertXdsIssuedCounter the histogram to track the time to issue a certificates
	CertIssuedTime *prometheus.HistogramVec

	/*
	 * ErrCode metrics
	 */
	// ErrCodeCounter is the metric counter for the number of errcodes generated by OSM
	ErrCodeCounter *prometheus.CounterVec
	// contains filtered or unexported fields
}

MetricsStore is a type that provides functionality related to metrics

func (*MetricsStore) Handler added in v0.7.0

func (ms *MetricsStore) Handler() http.Handler

Handler return the registry

func (*MetricsStore) Start added in v0.7.0

func (ms *MetricsStore) Start(cs ...prometheus.Collector)

Start store

func (*MetricsStore) Stop added in v0.7.0

func (ms *MetricsStore) Stop(cs ...prometheus.Collector)

Stop store

Jump to

Keyboard shortcuts

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