Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeLister ¶ added in v1.3.0
func GetNodeLister(kubeClient *kube_client.Clientset) (v1listers.NodeLister, *cache.Reflector, error)
Types ¶
type DummyDataProcessor ¶
type DummyDataProcessor struct {
// contains filtered or unexported fields
}
func NewDummyDataProcessor ¶
func NewDummyDataProcessor(latency time.Duration) *DummyDataProcessor
func (*DummyDataProcessor) Name ¶
func (this *DummyDataProcessor) Name() string
type DummyMetricsSource ¶
type DummyMetricsSource struct {
// contains filtered or unexported fields
}
func NewDummyMetricsSource ¶
func NewDummyMetricsSource(name string, latency time.Duration) *DummyMetricsSource
func (*DummyMetricsSource) Name ¶
func (this *DummyMetricsSource) Name() string
func (*DummyMetricsSource) ScrapeMetrics ¶
type DummyMetricsSourceProvider ¶
type DummyMetricsSourceProvider struct {
// contains filtered or unexported fields
}
func NewDummyMetricsSourceProvider ¶
func NewDummyMetricsSourceProvider(sources ...core.MetricsSource) *DummyMetricsSourceProvider
func (*DummyMetricsSourceProvider) GetMetricsSources ¶
func (this *DummyMetricsSourceProvider) GetMetricsSources() []core.MetricsSource
type DummySink ¶
type DummySink struct {
// contains filtered or unexported fields
}
func (*DummySink) ExportData ¶
func (*DummySink) GetExportCount ¶
type LabelCopier ¶ added in v1.5.0
type LabelCopier struct {
// contains filtered or unexported fields
}
LabelCopier maps kubernetes objects' labels to metrics
func NewLabelCopier ¶ added in v1.5.0
func NewLabelCopier(separator string, storedLabels, ignoredLabels []string) (*LabelCopier, error)
NewLabelCopier creates a new instance of LabelCopier type
func (*LabelCopier) Copy ¶ added in v1.5.0
func (this *LabelCopier) Copy(in map[string]string, out map[string]string)
Copy copies the given set of pod labels into a set of metric labels, using the following logic: - all labels, unless found in ignoredLabels, are concatenated into a Separator-seperated key:value pairs and stored under core.LabelLabels.Key - labels found in storedLabels are additionally stored under key provided
Click to show internal directories.
Click to hide internal directories.