grouper

package
v3.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 8 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 KSM metrics.

Types

type Config

type Config struct {
	Queries              []prometheus.Query
	MetricFamiliesGetter prometheus.FetchAndFilterMetricsFamilies
	ServicesLister       listersv1.ServiceLister
}

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