metric

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorConfiguration

type CollectorConfiguration struct {
	// PodSelector and NodeSelector are used to only match with those resources that real-time pipeline needed
	PodSelector  labels.Selector
	NodeSelector labels.Selector
	SyncInterval time.Duration

	// ShardNum is used to indicate which shard splits current collector will be responsible for
	// todo: currently, we don't support to ShardNum to be set > 1
	ShardNum int

	// CollectorName is used to switch from different collector implementations.
	CollectorName string

	// CredentialPath is the path where the credential files should be in. Which and how many files should be in it
	// depends on the authentication method. For now, we only support basic auth,so there should be two files with name
	// username and password.
	CredentialPath string
}

func NewCollectorConfiguration

func NewCollectorConfiguration() *CollectorConfiguration

type CustomMetricConfiguration

type CustomMetricConfiguration struct {
	WorkMode []string

	*MockConfiguration
	*CollectorConfiguration
	*StoreConfiguration
	*ProviderConfiguration
}

func NewCustomMetricConfiguration

func NewCustomMetricConfiguration() *CustomMetricConfiguration

type GenericMetricConfiguration

type GenericMetricConfiguration struct {
	// leaderElection defines the configuration of leader election client.
	LeaderElection componentbaseconfig.LeaderElectionConfiguration

	OutOfDataPeriod time.Duration
}

func NewGenericMetricConfiguration

func NewGenericMetricConfiguration() *GenericMetricConfiguration

type MockConfiguration added in v0.4.0

type MockConfiguration struct {
	NamespaceCount int
	WorkloadCount  int
	PodCount       int
}

func NewMockConfiguration added in v0.4.0

func NewMockConfiguration() *MockConfiguration

type ProviderConfiguration

type ProviderConfiguration struct {
	Adapter *basecmd.AdapterBase
}

func NewProviderConfiguration

func NewProviderConfiguration() *ProviderConfiguration

type StoreConfiguration

type StoreConfiguration struct {
	StoreName      string
	GCPeriod       time.Duration
	PurgePeriod    time.Duration
	IndexLabelKeys []string

	StoreServerShardCount   int
	StoreServerReplicaTotal int

	*generic.ServiceDiscoveryConf
}

func NewStoreConfiguration

func NewStoreConfiguration() *StoreConfiguration

Jump to

Keyboard shortcuts

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