Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(address string, nodeLister corelistersv1.NodeLister) (metrics.Backend, error)
NewClient returns a new client for talking to an InfluxDB Backend, or an error
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements a metrics backend for InfluxDB.
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 Memory usage of nodes MetricMemoryPercentUtilization // MetricCustom is used to perform a custom InfluxDB query MetricCustom )
Click to show internal directories.
Click to hide internal directories.