metricsresource

package
v0.0.0-...-e785d24 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrometheusNamespace = "operatorkit"
	PrometheusSubsystem = "framework"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func New

func New(config Config) (framework.Resource, error)

func Wrap

func Wrap(resources []framework.Resource, config WrapConfig) ([]framework.Resource, error)

Wrap wraps each given resource with a metrics resource and returns the list of wrapped resources.

Types

type Config

type Config struct {
	Resource framework.Resource

	// Name is name of the service using the reconciler framework. This may be the
	// name of the executing operator or controller. The service name will be used
	// to label metrics.
	Name string
}

type WrapConfig

type WrapConfig struct {
	Name string
}

Jump to

Keyboard shortcuts

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