metrics

package
v1.9.0-preview2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 5 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 CountPolicyPreemption added in v1.7.0

func CountPolicyPreemption(err error)

CountPolicyPreemption records the numbers of policy preemption.

func ObserveApplyPolicyAttemptAndLatency

func ObserveApplyPolicyAttemptAndLatency(err error, start time.Time)

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

func ObserveFederatedHPAPullMetricsLatency added in v1.7.0

func ObserveFederatedHPAPullMetricsLatency(err error, metricType string, start time.Time)

ObserveFederatedHPAPullMetricsLatency records the duration it takes for the FederatedHPA to pull metrics.

func ObserveFindMatchedPolicyLatency

func ObserveFindMatchedPolicyLatency(start time.Time)

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

func ObserveProcessCronFederatedHPALatency added in v1.7.0

func ObserveProcessCronFederatedHPALatency(err error, start time.Time)

ObserveProcessCronFederatedHPALatency records the duration to process a cron federated HPA.

func ObserveProcessCronFederatedHPARuleLatency added in v1.7.0

func ObserveProcessCronFederatedHPARuleLatency(err error, start time.Time)

ObserveProcessCronFederatedHPARuleLatency records the duration to process a cron federated HPA rule.

func ObserveProcessFederatedHPALatency added in v1.7.0

func ObserveProcessFederatedHPALatency(err error, start time.Time)

ObserveProcessFederatedHPALatency records the duration to process a FederatedHPA.

func ObserveSyncWorkLatency

func ObserveSyncWorkLatency(err error, start time.Time)

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

func ObserveSyncWorkloadLatency

func ObserveSyncWorkloadLatency(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

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 RecordPoolGet added in v1.5.0

func RecordPoolGet(name string, created bool)

RecordPoolGet records the times of getting from pool

func RecordPoolPut added in v1.5.0

func RecordPoolPut(name string, destroyed bool)

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.

Jump to

Keyboard shortcuts

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