grouper

package
v3.23.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config, opts ...OptionFunc) (data.Grouper, error)

New returns a data.Grouper that groups Kubelet metrics.

Types

type Config

type Config struct {
	NodeGetter              listersv1.NodeLister
	Client                  client.HTTPGetter
	Fetchers                []data.FetchFunc
	DefaultNetworkInterface string
}

type OptionFunc

type OptionFunc func(kc *grouper) error

func WithLogger

func WithLogger(logger *log.Logger) OptionFunc

WithLogger returns an OptionFunc to change the logger from the default noop logger.

Jump to

Keyboard shortcuts

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