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 // K8sMonitoredNamespaceCount is the metric for the number of monitored namespaces K8sMonitoredNamespaceCount prometheus.Gauge // K8sMeshPodCount is the metric for the number of pods participating in the mesh K8sMeshPodCount prometheus.Gauge /* * Proxy metrics */ // ProxyConnectCount is the metric for the total number of proxies connected to the controller ProxyConnectCount prometheus.Gauge // ProxyConfigUpdateTime is the histogram to track time spent for proxy configuration and its occurrences ProxyConfigUpdateTime *prometheus.HistogramVec /* * 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 // 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
Click to show internal directories.
Click to hide internal directories.