Documentation ¶
Index ¶
- Constants
- Variables
- func OverwriteObject(gvk schema.GroupVersionKind)
- func RecordNamespaceCondition(tp, reason string, num int)
- func StartHierConfigReconcile()
- func StartLoggingActivity()
- func StartObjReconcile(gvk schema.GroupVersionKind)
- func StopHierConfigReconcile()
- func StopObjReconcile(gvk schema.GroupVersionKind)
- func WriteHierConfig()
- func WriteNamespace()
- func WriteObject(gvk schema.GroupVersionKind)
Constants ¶
const ReportingInterval = 1 * time.Minute
ReportingInterval is the exporter reporting period.
Variables ¶
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.
var KeyNamespaceConditionReason, _ = tag.NewKey("Reason")
KeyNamespaceConditionReason indicates the reason of the namespace condition. The values could be "InCycle", "ParentMissing", etc.
var KeyNamespaceConditionType, _ = tag.NewKey("Condition")
KeyNamespaceConditionType is the type of the namespace condition. The values could be "ActivitiesHalted" or "BadConfiguration".
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 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.