Documentation ¶
Index ¶
- func NewClientForGVK(cfg *rest.Config, apiVersion, kind string) (dynamic.NamespaceableResourceInterface, error)
- func NewMetricsStores(dclient dynamic.NamespaceableResourceInterface, namespaces []string, ...) []*metricsstore.MetricsStore
- func ServeMetrics(stores [][]*metricsstore.MetricsStore, host string, port int32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientForGVK ¶
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.
Click to show internal directories.
Click to hide internal directories.