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
Click to show internal directories.
Click to hide internal directories.