store

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder helps to build store. It follows the builder pattern (https://en.wikipedia.org/wiki/Builder_pattern).

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a new builder.

func (*Builder) Build

func (b *Builder) Build() []*metricsstore.MetricsStore

Build initializes and registers all enabled stores.

func (*Builder) WithContext added in v1.8.0

func (b *Builder) WithContext(ctx context.Context)

WithContext sets the ctx property of a Builder.

func (*Builder) WithEnabledResources

func (b *Builder) WithEnabledResources(c []string) error

WithEnabledResources sets the enabledResources property of a Builder.

func (*Builder) WithKubeClient

func (b *Builder) WithKubeClient(c clientset.Interface)

WithKubeClient sets the kubeClient property of a Builder.

func (*Builder) WithMetrics added in v1.8.0

func (b *Builder) WithMetrics(r *prometheus.Registry)

WithMetrics sets the metrics property of a Builder.

func (*Builder) WithNamespaces

func (b *Builder) WithNamespaces(n options.NamespaceList)

WithNamespaces sets the namespaces property of a Builder.

func (*Builder) WithSharding added in v1.8.0

func (b *Builder) WithSharding(shard int32, totalShards int)

WithSharding sets the shard and totalShards property of a Builder.

func (*Builder) WithVPAClient

func (b *Builder) WithVPAClient(c vpaclientset.Interface)

WithVPAClient sets the vpaClient property of a Builder so that the verticalpodautoscaler collector can query VPA objects.

func (*Builder) WithWhiteBlackList

func (b *Builder) WithWhiteBlackList(l whiteBlackLister)

WithWhiteBlackList configures the white or blacklisted metric to be exposed by the store build by the Builder.

type MetricTargetType added in v1.9.0

type MetricTargetType int
const (
	Value MetricTargetType = iota
	Utilization
	Average

	MetricTargetTypeCount // Used as a length argument to arrays
)

func (MetricTargetType) String added in v1.9.0

func (m MetricTargetType) String() string

Jump to

Keyboard shortcuts

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