metrics

package
v1.20.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMetrics

func RegisterMetrics()

RegisterMetrics registers OpenStack metrics.

Types

type MetricContext

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

MetricContext indicates the context for OpenStack metrics.

func NewMetricContext

func NewMetricContext(resource string, request string) *MetricContext

NewMetricContext creates a new MetricContext.

func (*MetricContext) ObserveReconcile

func (mc *MetricContext) ObserveReconcile(err error) error

ObserveReconcile records reconciliation duration, frequency and number of errors.

func (*MetricContext) ObserveRequest

func (mc *MetricContext) ObserveRequest(err error) error

ObserveRequest records the request latency and counts the errors.

Jump to

Keyboard shortcuts

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