Documentation ¶
Index ¶
- func ClusterCollectors() []prometheus.Collector
- func ObserveApplyPolicyAttemptAndLatency(object *unstructured.Unstructured, policyMetaData metav1.ObjectMeta, err error, ...)
- func ObserveFindMatchedPolicyLatency(object *unstructured.Unstructured, start time.Time)
- func ObserveSyncWorkLatency(bindingMetaData metav1.ObjectMeta, err error, start time.Time)
- func ObserveSyncWorkloadLatency(workMetadata metav1.ObjectMeta, err error, start time.Time)
- func PoolCollectors() []prometheus.Collector
- func RecordClusterStatus(cluster *v1alpha1.Cluster)
- func RecordClusterSyncStatusDuration(cluster *v1alpha1.Cluster, startTime time.Time)
- func RecordPoolGet(name string, created bool)
- func RecordPoolPut(name string, destroyed bool)
- func ResourceCollectors() []prometheus.Collector
- func ResourceCollectorsForAgent() []prometheus.Collector
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 PoolCollectors ¶ added in v1.5.0
func PoolCollectors() []prometheus.Collector
PoolCollectors returns the collectors about pool.
func RecordClusterStatus ¶
RecordClusterStatus records the status of the given cluster.
func RecordClusterSyncStatusDuration ¶
RecordClusterSyncStatusDuration records the duration of the given cluster syncing status
func RecordPoolGet ¶ added in v1.5.0
RecordPoolGet records the times of getting from pool
func RecordPoolPut ¶ added in v1.5.0
RecordPoolPut records the times of putting from pool
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.