metric_emitter

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricEmitterExternalConfiguration added in v0.3.0

type MetricEmitterExternalConfiguration struct{}

type MetricEmitterNodeConfiguration added in v0.3.0

type MetricEmitterNodeConfiguration struct {
	NodeMetricLabel sets.String

	// MetricMapping will override the default to-collected metrics in node-level
	MetricMapping map[string]string
}

type MetricEmitterPluginConfiguration

type MetricEmitterPluginConfiguration struct {
	*MetricEmitterPodConfiguration
	*MetricEmitterNodeConfiguration
	*MetricEmitterExternalConfiguration

	// MetricSyncers defines those syncers that should be enabled
	MetricSyncers []string
}

MetricEmitterPluginConfiguration stores configurations of custom-metric emitter plugin

func NewMetricEmitterPluginConfiguration

func NewMetricEmitterPluginConfiguration() *MetricEmitterPluginConfiguration

NewMetricEmitterPluginConfiguration creates a new custom-metric emitter plugin configuration.

type MetricEmitterPodConfiguration added in v0.3.0

type MetricEmitterPodConfiguration struct {
	PodMetricLabel sets.String
	PodSyncPeriod  time.Duration

	// nominated annotations and labels to skip to avoid too many metrics;
	// if multiple key-value pairs are nominated, skip if any pair matches
	PodSkipAnnotations map[string]string
	PodSkipLabels      map[string]string

	// MetricMapping will override the default to-collected metrics in pod-level
	MetricMapping map[string]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL