stats

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 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.

View Source
var KeyNamespaceConditionReason, _ = tag.NewKey("Reason")

KeyNamespaceConditionReason indicates the reason of the namespace condition. The values could be "InCycle", "ParentMissing", etc.

View Source
var KeyNamespaceConditionType, _ = tag.NewKey("Condition")

KeyNamespaceConditionType is the type of the namespace condition. The values could be "ActivitiesHalted" or "BadConfiguration".

View Source
var (
	// SuppressObjectTags, if true, will prevent any GroupKind tags from being annotated onto object
	// metrics.
	SuppressObjectTags bool
)

Functions

func OverwriteObject

func OverwriteObject(gvk schema.GroupVersionKind)

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

func RecordNamespaceCondition

func RecordNamespaceCondition(tp, reason string, num int)

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