metrics

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package metrics implements Kubernetes metrics operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger    *zap.Logger
	Stopc     chan struct{}
	Sig       chan os.Signal
	EKSConfig *eksconfig.Config
	K8SClient k8sClientSetGetter
}

Config defines metrics configuration.

type Tester

type Tester interface {
	// Fetch fetches all metrics output.
	Fetch() ([]byte, map[string]*dto.MetricFamily, error)
}

Tester defines metrics tester.

func New

func New(cfg Config) (Tester, error)

New creates a new Job tester.

Jump to

Keyboard shortcuts

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