metrics

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttachSync = syncType("attach")
	DetachSync = syncType("detach")
)

Variables

View Source
var (
	SyncLatency = prometheus.NewHistogramVec(
		prometheus.HistogramOpts{
			Namespace: metrics.GLBC_NAMESPACE,
			Subsystem: negControllerSubsystem,
			Name:      syncLatencyKey,
			Help:      "Sync latency of a NEG syncer",
		},
		syncMetricsLabels,
	)

	LastSyncTimestamp = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: metrics.GLBC_NAMESPACE,
			Subsystem: negControllerSubsystem,
			Name:      lastSyncTimestampKey,
			Help:      "The timestamp of the last execution of NEG controller sync loop.",
		},
		[]string{},
	)
)

Functions

func ObserveNegSync

func ObserveNegSync(negName string, syncType syncType, err error, start time.Time)

ObserveNegSync publish collected metrics for the sync of NEG

func RegisterMetrics

func RegisterMetrics()

Types

This section is empty.

Jump to

Keyboard shortcuts

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