stats

package
v0.0.0-...-9966945 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ReportingInterval = 1 * time.Minute

ReportingInterval is the exporter reporting period.

Variables

View Source
var KeyGroupKind, _ = tag.NewKey("GroupKind")

Create Tags. Tags are used to group and filter collected metrics later on. Create a GroupKind Tag for metrics of object reconcilers for different GroupKind.

Functions

func StartHierConfigReconcile

func StartHierConfigReconcile()

StartHierConfigReconcile updates stats when hierarchyConfig reconciliation starts.

func StartLoggingActivity

func StartLoggingActivity()

StartLoggingActivity generates logs for performance testing.

func StartObjReconcile

func StartObjReconcile(gvk schema.GroupVersionKind)

StartObjReconcile updates the stats for objects with common GK when an object reconciliation starts.

func StopHierConfigReconcile

func StopHierConfigReconcile()

StopHierConfigReconcile updates stats when hierarchyConfig reconciliation finishes.

func StopObjReconcile

func StopObjReconcile(gvk schema.GroupVersionKind)

StopObjReconcile updates the stats for objects with common GK when an object reconciliation finishes.

func WriteHierConfig

func WriteHierConfig()

WriteHierConfig updates stats when writing hierarchyConfig instance.

func WriteNamespace

func WriteNamespace()

WriteNamespace updates stats when writing namespace instance.

func WriteObject

func WriteObject(gvk schema.GroupVersionKind)

WriteObject updates the object stats by GK when writing the object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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