configconverter

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Taken from https://github.com/open-telemetry/opentelemetry-collector/blob/v0.66.0/confmap/converter/overwritepropertiesconverter/properties.go to prevent breaking changes. "Deprecated: [v0.63.0] this converter will not be supported anymore because of dot separation limitation. See https://github.com/open-telemetry/opentelemetry-collector/issues/6294 for more details."

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOverwritePropertiesConverter added in v0.67.0

func NewOverwritePropertiesConverter(properties []string) confmap.Converter

Types

type ConfigServer added in v0.59.0

type ConfigServer struct {
	// contains filtered or unexported fields
}

func NewConfigServer added in v0.59.0

func NewConfigServer() *ConfigServer

func (*ConfigServer) Convert added in v0.59.0

func (cs *ConfigServer) Convert(_ context.Context, conf *confmap.Conf) error

Convert is intended to be called as the final service confmap.Converter, which registers the service config before being finally resolved and unmarshalled.

func (*ConfigServer) OnNew added in v0.68.0

func (cs *ConfigServer) OnNew()

func (*ConfigServer) OnRetrieve added in v0.68.0

func (cs *ConfigServer) OnRetrieve(scheme string, retrieved map[string]any)

func (*ConfigServer) OnShutdown added in v0.68.0

func (cs *ConfigServer) OnShutdown()

type ConfigType added in v0.59.0

type ConfigType int

type DisableExcessiveInternalMetrics added in v0.93.0

type DisableExcessiveInternalMetrics struct{}

DisableExcessiveInternalMetrics is a MapConverter that updates config of the prometheus receiver scraping internal collector metrics to drop excessive internal metrics matching the following patterns: - "otelcol_rpc_.*" - "otelcol_http_.*" - "otelcol_processor_batch_.*"

func (DisableExcessiveInternalMetrics) Convert added in v0.93.0

type DisableKubeletUtilizationMetrics added in v0.93.0

type DisableKubeletUtilizationMetrics struct{}

DisableKubeletUtilizationMetrics is a MapConverter that disables the following deprecated metrics: - `k8s.node.cpu.utilization` - `k8s.pod.cpu.utilization` - `container.cpu.utilization` The converter disables the metrics at the receiver level to avoid showing users a warning message because they are excluded in signalfx exporter by default. We don't disable them in case if users explicitly include them in signalfx exporter.

func (DisableKubeletUtilizationMetrics) Convert added in v0.93.0

type Discovery added in v0.76.0

type Discovery struct{}

func (Discovery) Convert added in v0.76.0

func (Discovery) Convert(_ context.Context, in *confmap.Conf) error

Convert will find `service::<extensions|receivers>/splunk.discovery` entries provided by the discovery confmap.Provider and relocate them to `service::extensions` and `service::pipelines::metrics::receivers`, by appending them to existing sequences, if any.

type DryRun added in v0.63.0

type DryRun struct {
	*sync.Mutex
	// contains filtered or unexported fields
}

func NewDryRun added in v0.63.0

func NewDryRun(enabled bool, converters []confmap.Converter) *DryRun

func (*DryRun) Convert added in v0.63.0

func (dr *DryRun) Convert(ctx context.Context, _ *confmap.Conf) error

Convert disregards the provided *confmap.Conf so that it will use unexpanded values (env vars, config source directives) as accrued by OnRetrieve() calls.

func (*DryRun) OnNew added in v0.68.0

func (dr *DryRun) OnNew()

func (*DryRun) OnRetrieve added in v0.68.0

func (dr *DryRun) OnRetrieve(_ string, retrieved map[string]any)

func (*DryRun) OnShutdown added in v0.68.0

func (dr *DryRun) OnShutdown()

type LogLevelToVerbosity added in v0.91.2

type LogLevelToVerbosity struct{}

func (LogLevelToVerbosity) Convert added in v0.91.2

type MoveHecTLS added in v0.37.0

type MoveHecTLS struct{}

func (MoveHecTLS) Convert added in v0.52.0

func (MoveHecTLS) Convert(_ context.Context, in *confmap.Conf) error

type MoveOTLPInsecureKey

type MoveOTLPInsecureKey struct{}

func (MoveOTLPInsecureKey) Convert added in v0.52.0

type NormalizeGcp added in v0.69.0

type NormalizeGcp struct{}

func (NormalizeGcp) Convert added in v0.69.0

func (NormalizeGcp) Convert(_ context.Context, in *confmap.Conf) error

type RemoveBallastKey

type RemoveBallastKey struct{}

RemoveBallastKey is a MapConverter that removes a ballast_size_mib on a memory_limiter processor config if it exists. This config key will go away at some point (or already has) at which point its presence in a config will prevent the Collector from starting.

func (RemoveBallastKey) Convert added in v0.52.0

func (RemoveBallastKey) Convert(_ context.Context, cfgMap *confmap.Conf) error

type RenameK8sTagger added in v0.37.0

type RenameK8sTagger struct{}

RenameK8sTagger will replace k8s_tagger processor items with k8sattributes ones.

func (RenameK8sTagger) Convert added in v0.52.0

func (RenameK8sTagger) Convert(_ context.Context, in *confmap.Conf) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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