metricsk8s.io/metrics/pkg/client/external_metrics Index | Files | Directories

package external_metrics

import "k8s.io/metrics/pkg/client/external_metrics"

Index

Types

type ExternalMetricsClient

type ExternalMetricsClient interface {
	NamespacedMetricsGetter
}

ExternalMetricsClient is a client for fetching external metrics.

func New

func NewForConfig

func NewForConfig(c *rest.Config) (ExternalMetricsClient, error)

func NewForConfigOrDie

func NewForConfigOrDie(c *rest.Config) ExternalMetricsClient

type MetricsInterface

type MetricsInterface interface {
	// List fetches the metric for the given namespace that maches the given
	// metricSelector.
	List(metricName string, metricSelector labels.Selector) (*v1beta1.ExternalMetricValueList, error)
}

MetricsInterface provides access to external metrics.

type NamespacedMetricsGetter

type NamespacedMetricsGetter interface {
	NamespacedMetrics(namespace string) MetricsInterface
}

NamespacedMetricsGetter provides access to an interface for fetching metrics in a particular namespace.

Source Files

client.go interfaces.go

Directories

PathSynopsis
pkg/client/external_metrics/fake
Version
v0.33.1 (latest)
Published
May 15, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
2 days ago

Tools for package owners.