Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(address string, nodeLister corelistersv1.NodeLister, podLister corelistersv1.PodLister) (metrics.Backend, error)
NewClient returns a new client for talking to a Prometheus Backend, or an error
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements a metrics backend for Prometheus. It requires a pod lister so that it can gather info about the prom-exporter pods. Pods accessed via the lister must not be mutated.
type Metric ¶
type Metric int
Metric is a metric exposed by this backend
const ( // MetricCPUPercentUtilization is used to gather info about the CPU usage of nodes MetricCPUPercentUtilization Metric = iota // MetricMemoryPercentUtilization is used to gather info about the CPU usage of nodes MetricMemoryPercentUtilization // MetricCustom is used to perform a custom Prometheus query MetricCustom )
Click to show internal directories.
Click to hide internal directories.