Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientForGVK

func NewClientForGVK(cfg *rest.Config, apiVersion, kind string) (dynamic.NamespaceableResourceInterface, error)

func NewMetricsStores

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)

Types

This section is empty.