The highest tagged major version is
v8 .
Discover Packages
github.com/giantswarm/operatorkit/v4
pkg
resource
wrapper
metricsresource
package
Version:
v4.2.0
Opens a new window with list of versions in this module.
Published: Jan 7, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 9
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types IsInvalidConfig(err) New(config) Wrap(resources, config) type Config type WrapConfig
Documentation
¶
View Source
const (
PrometheusNamespace = "operatorkit"
PrometheusSubsystem = "controller"
)
IsInvalidConfig asserts invalidConfigError.
New returns a new metrics resource according to the configured resource's
implementation, which might be resource.Interface or crud.Interface. This has
then different implications on how to measure metrics for the different
methods of the interfaces.
Wrap wraps each given resource with a metrics resource and returns the list of
wrapped resources.
type WrapConfig struct {
}
WrapConfig is the configuration used to wrap resources with metrics resources.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.