Documentation ¶
Index ¶
- func ParseHPAMetrics(hpa *autoscalingv2.HorizontalPodAutoscaler) ([]*collectorclient.MetricConfig, error)
- type CollectorFactory
- func (c *CollectorFactory) NewCollector(hpa *autoscalingv2.HorizontalPodAutoscaler, ...) (collectorclient.Collector, error)
- func (c *CollectorFactory) RegisterExternalCollector(metrics []string, plugin collectorclient.CollectorPlugin)
- func (c *CollectorFactory) RegisterObjectCollector(kind, metricCollector string, plugin collectorclient.CollectorPlugin) error
- func (c *CollectorFactory) RegisterPodsCollector(metricCollector string, plugin collectorclient.CollectorPlugin) error
- type ObjectReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHPAMetrics ¶
func ParseHPAMetrics(hpa *autoscalingv2.HorizontalPodAutoscaler) ([]*collectorclient.MetricConfig, error)
ParseHPAMetrics parses the HPA object into a list of metric configurations.
Types ¶
type CollectorFactory ¶
type CollectorFactory struct {
// contains filtered or unexported fields
}
func NewCollectorFactory ¶
func NewCollectorFactory() *CollectorFactory
func (*CollectorFactory) NewCollector ¶
func (c *CollectorFactory) NewCollector(hpa *autoscalingv2.HorizontalPodAutoscaler, config *collectorclient.MetricConfig, interval time.Duration) (collectorclient.Collector, error)
func (*CollectorFactory) RegisterExternalCollector ¶
func (c *CollectorFactory) RegisterExternalCollector(metrics []string, plugin collectorclient.CollectorPlugin)
func (*CollectorFactory) RegisterObjectCollector ¶
func (c *CollectorFactory) RegisterObjectCollector(kind, metricCollector string, plugin collectorclient.CollectorPlugin) error
func (*CollectorFactory) RegisterPodsCollector ¶
func (c *CollectorFactory) RegisterPodsCollector(metricCollector string, plugin collectorclient.CollectorPlugin) error
type ObjectReference ¶
type ObjectReference struct { autoscalingv2.CrossVersionObjectReference Namespace string }
Click to show internal directories.
Click to hide internal directories.