Documentation ¶
Index ¶
- func ClusterCollectors() []prometheus.Collector
- func CountPolicyPreemption(err error)
- func ObserveApplyPolicyAttemptAndLatency(err error, start time.Time)
- func ObserveFederatedHPAPullMetricsLatency(err error, metricType string, start time.Time)
- func ObserveFindMatchedPolicyLatency(start time.Time)
- func ObserveProcessCronFederatedHPALatency(err error, start time.Time)
- func ObserveProcessCronFederatedHPARuleLatency(err error, start time.Time)
- func ObserveProcessFederatedHPALatency(err error, start time.Time)
- func ObserveSyncWorkLatency(err error, start time.Time)
- func ObserveSyncWorkloadLatency(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 CountPolicyPreemption ¶ added in v1.7.0
func CountPolicyPreemption(err error)
CountPolicyPreemption records the numbers of policy preemption.
func ObserveApplyPolicyAttemptAndLatency ¶
ObserveApplyPolicyAttemptAndLatency records the duration for the resource applying a policy and a applying attempt for the policy.
func ObserveFederatedHPAPullMetricsLatency ¶ added in v1.7.0
ObserveFederatedHPAPullMetricsLatency records the duration it takes for the FederatedHPA to pull metrics.
func ObserveFindMatchedPolicyLatency ¶
ObserveFindMatchedPolicyLatency records the duration for the resource finding a matched policy.
func ObserveProcessCronFederatedHPALatency ¶ added in v1.7.0
ObserveProcessCronFederatedHPALatency records the duration to process a cron federated HPA.
func ObserveProcessCronFederatedHPARuleLatency ¶ added in v1.7.0
ObserveProcessCronFederatedHPARuleLatency records the duration to process a cron federated HPA rule.
func ObserveProcessFederatedHPALatency ¶ added in v1.7.0
ObserveProcessFederatedHPALatency records the duration to process a FederatedHPA.
func ObserveSyncWorkLatency ¶
ObserveSyncWorkLatency records the duration to sync works for a binding object.
func ObserveSyncWorkloadLatency ¶
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.