metricsstore

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrometheusNamespace = "osm"

PrometheusNamespace is the Prometheus Namespace

Functions

This section is empty.

Types

type MetricStore

type MetricStore interface {
	Start()
	Stop()
	Handler() http.Handler
	SetUpdateLatencySec(time.Duration)
	IncK8sAPIEventCounter()
}

MetricStore is store maintaining all metrics

func NewFakeMetricStore

func NewFakeMetricStore() MetricStore

NewFakeMetricStore return a fake metric store

func NewMetricStore

func NewMetricStore(nameSpace string, podName string) MetricStore

NewMetricStore returns a new metric store

type OSMMetricsStore

type OSMMetricsStore struct {
	// contains filtered or unexported fields
}

OSMMetricsStore is store

func (*OSMMetricsStore) Handler

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

Handler return the registry

func (*OSMMetricsStore) IncK8sAPIEventCounter

func (ms *OSMMetricsStore) IncK8sAPIEventCounter()

IncK8sAPIEventCounter increases the counter after recieving a k8s Event

func (*OSMMetricsStore) SetUpdateLatencySec

func (ms *OSMMetricsStore) SetUpdateLatencySec(duration time.Duration)

SetUpdateLatencySec updates latency

func (*OSMMetricsStore) Start

func (ms *OSMMetricsStore) Start()

Start store

func (*OSMMetricsStore) Stop

func (ms *OSMMetricsStore) Stop()

Stop store

Jump to

Keyboard shortcuts

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