configconverter

package
v0.106.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 30 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 AddOTLPHistogramAttr added in v0.98.0

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

AddOTLPHistogramAttr updates the service::telemetry::resource to add the attribute send_otlp_histograms=true. This additional resource attr is only added if we see any signalfx exporter in use with the config send_otlp_histograms set to true.

func ConverterFactoryFromConverter added in v0.101.0

func ConverterFactoryFromConverter(conv confmap.Converter) confmap.ConverterFactory

ConverterFactoryFromConverter creates a ConverterFactory from a Converter.

func ConverterFactoryFromFunc added in v0.101.0

func ConverterFactoryFromFunc(f func(context.Context, *confmap.Conf) error) confmap.ConverterFactory

ConverterFactoryFromFunc creates a ConverterFactory from a convert function.

func DisableExcessiveInternalMetrics added in v0.93.0

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

DisableExcessiveInternalMetrics 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 DisableKubeletUtilizationMetrics added in v0.93.0

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

DisableKubeletUtilizationMetrics 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 LogLevelToVerbosity added in v0.91.2

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

func MoveHecTLS added in v0.37.0

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

func MoveOTLPInsecureKey

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

func NewOverwritePropertiesConverter added in v0.67.0

func NewOverwritePropertiesConverter(properties []string) confmap.Converter

func NormalizeGcp added in v0.69.0

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

func RemoveBallastKey

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

RemoveBallastKey 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 RemoveMemoryBallastKey added in v0.97.0

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

RemoveMemoryBallastKey removes a memory_ballast on a extension config if it exists.

func RenameK8sTagger added in v0.37.0

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

RenameK8sTagger will replace k8s_tagger processor items with k8sattributes ones.

func SetupDiscovery added in v0.101.0

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

SetupDiscovery 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.

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 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, cf []confmap.ConverterFactory) *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()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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