v0.13.0 Latest Latest

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 20 Imported by: 0




This section is empty.


This section is empty.


func GenerateAndServeCRMetrics

func GenerateAndServeCRMetrics(cfg *rest.Config,
	ns []string,
	operatorGVKs []schema.GroupVersionKind,
	host string, port int32) error

GenerateAndServeCRMetrics generates CustomResource specific metrics for each custom resource GVK in operatorGVKs. A list of namespaces, ns, can be passed to ServeCRMetrics to scope the generated metrics. Passing nil or an empty list of namespaces will result in an error. The function also starts serving the generated collections of the metrics on given host and port.

func NewMetricsStores added in v0.11.0

func NewMetricsStores(dclient dynamic.NamespaceableResourceInterface, namespaces []string, api string, kind string, metricFamily []metric.FamilyGenerator) []*metricsstore.MetricsStore

NewMetricsStores returns collections of metrics in the namespaces provided, per the api/kind resource. The metrics are registered in the custom metrics.FamilyGenerator that needs to be defined.

func ServeMetrics

func ServeMetrics(stores [][]*metricsstore.MetricsStore, host string, port int32)


This section is empty.

Jump to

Keyboard shortcuts

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