metrics

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterCollectors

func ClusterCollectors() []prometheus.Collector

ClusterCollectors returns the collectors about clusters.

func ObserveApplyPolicyAttemptAndLatency

func ObserveApplyPolicyAttemptAndLatency(object *unstructured.Unstructured, policyMetaData metav1.ObjectMeta, err error, start time.Time)

ObserveApplyPolicyAttemptAndLatency records the duration for the resource applying a policy and a applying attempt for the policy.

func ObserveFindMatchedPolicyLatency

func ObserveFindMatchedPolicyLatency(object *unstructured.Unstructured, start time.Time)

ObserveFindMatchedPolicyLatency records the duration for the resource finding a matched policy.

func ObserveSyncWorkLatency

func ObserveSyncWorkLatency(bindingMetaData metav1.ObjectMeta, err error, start time.Time)

ObserveSyncWorkLatency records the duration to sync works for a binding object.

func ObserveSyncWorkloadLatency

func ObserveSyncWorkloadLatency(workMetadata metav1.ObjectMeta, err error, start time.Time)

ObserveSyncWorkloadLatency records the duration to sync the workload to a target cluster.

func RecordClusterStatus

func RecordClusterStatus(cluster *v1alpha1.Cluster)

RecordClusterStatus records the status of the given cluster.

func RecordClusterSyncStatusDuration

func RecordClusterSyncStatusDuration(cluster *v1alpha1.Cluster, startTime time.Time)

RecordClusterSyncStatusDuration records the duration of the given cluster syncing status

func ResourceCollectors

func ResourceCollectors() []prometheus.Collector

ResourceCollectors returns the collectors about resources.

func ResourceCollectorsForAgent

func ResourceCollectorsForAgent() []prometheus.Collector

ResourceCollectorsForAgent returns the collectors about resources for karmada-agent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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