metric

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 4 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
}

func NewCollectorConfiguration

func NewCollectorConfiguration() *CollectorConfiguration

type CustomMetricConfiguration

type CustomMetricConfiguration struct {
	WorkMode []string

	*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 ProviderConfiguration

type ProviderConfiguration struct {
	Adapter *basecmd.AdapterBase
}

func NewProviderConfiguration

func NewProviderConfiguration() *ProviderConfiguration

type StoreConfiguration

type StoreConfiguration struct {
	StoreServerShardCount   int
	StoreServerReplicaTotal int
	StoreServerSelector     labels.Selector

	StoreName string

	GCPeriod time.Duration
}

func NewStoreConfiguration

func NewStoreConfiguration() *StoreConfiguration

Jump to

Keyboard shortcuts

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