metrics

package
v1.116.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MReconcileOccupiedWorkers = stats.Int64("ReconcileOccupiedWorkers", "The number of occupied reconcile workers", stats.UnitDimensionless)
	MReconcileTotalWorkers    = stats.Int64("ReconcileTotalWorkers", "The number of total reconcile workers", stats.UnitDimensionless)
	MReconcileRequests        = stats.Int64("ReconcileRequests", "The number of reconcile requests", stats.UnitDimensionless)
	MInternalErrors           = stats.Int64("InternalErrorsTotal", "The number of internal errors", stats.UnitDimensionless)
	MReconcileDuration        = stats.Float64("ReconcileDuration", "The duration of reconcile requests", "seconds")
	MProcessStartTime         = stats.Float64("ProcessStartTimeSeconds", "Start time of the process since unix epoch in seconds", "seconds")
)

metrics defined in the format of OpenCensus

View Source
var (
	KindTag, _         = tag.NewKey("group_version_kind")
	StatusTag, _       = tag.NewKey("status")
	NamespaceTag, _    = tag.NewKey("namespace")
	ResourceNameTag, _ = tag.NewKey("name")
)

Functions

func GetControllerViews

func GetControllerViews() []*view.View

func GetControllerViewsWithResourceNameLabel

func GetControllerViewsWithResourceNameLabel() []*view.View

func NewAppliedResourcesCollector

func NewAppliedResourcesCollector() *prometheus.GaugeVec

metrics defined in the format of prometheus/client_golang

func NewBuildInfoCollector

func NewBuildInfoCollector(version string) prometheus.Collector

func RecordProcessStartTime

func RecordProcessStartTime() error

func RegisterControllerOpenCensusViews

func RegisterControllerOpenCensusViews() error

func RegisterControllerOpenCensusViewsWithResourceNameLabel

func RegisterControllerOpenCensusViewsWithResourceNameLabel() error

func RegisterPrometheusExporter

func RegisterPrometheusExporter(addr string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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