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 ¶
- func AddOTLPHistogramAttr(_ context.Context, cfgMap *confmap.Conf) error
- func ConverterFactoryFromConverter(conv confmap.Converter) confmap.ConverterFactory
- func ConverterFactoryFromFunc(f func(context.Context, *confmap.Conf) error) confmap.ConverterFactory
- func DisableExcessiveInternalMetrics(_ context.Context, cfgMap *confmap.Conf) error
- func DisableKubeletUtilizationMetrics(_ context.Context, cfgMap *confmap.Conf) error
- func LogLevelToVerbosity(_ context.Context, in *confmap.Conf) error
- func MoveHecTLS(_ context.Context, in *confmap.Conf) error
- func MoveOTLPInsecureKey(_ context.Context, in *confmap.Conf) error
- func NewOverwritePropertiesConverter(properties []string) confmap.Converter
- func NormalizeGcp(_ context.Context, in *confmap.Conf) error
- func RemoveBallastKey(_ context.Context, cfgMap *confmap.Conf) error
- func RemoveMemoryBallastKey(_ context.Context, cfgMap *confmap.Conf) error
- func RenameK8sTagger(_ context.Context, in *confmap.Conf) error
- func SetupDiscovery(_ context.Context, in *confmap.Conf) error
- type ConfigServer
- type ConfigType
- type DryRun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOTLPHistogramAttr ¶ added in v0.98.0
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
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
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 NewOverwritePropertiesConverter ¶ added in v0.67.0
func RemoveBallastKey ¶
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
RemoveMemoryBallastKey removes a memory_ballast on a extension config if it exists.
func RenameK8sTagger ¶ added in v0.37.0
RenameK8sTagger will replace k8s_tagger processor items with k8sattributes ones.
func SetupDiscovery ¶ added in v0.101.0
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
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
func NewDryRun ¶ added in v0.63.0
func NewDryRun(enabled bool, cf []confmap.ConverterFactory) *DryRun
func (*DryRun) Convert ¶ added in v0.63.0
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) OnRetrieve ¶ added in v0.68.0
func (*DryRun) OnShutdown ¶ added in v0.68.0
func (dr *DryRun) OnShutdown()
Source Files ¶
- common.go
- config_server.go
- disable_excessive_internal_metrics.go
- disable_kubelet_utilization_metrics.go
- discovery.go
- dry_run.go
- k8s_tagger.go
- loglevel_to_verbosity.go
- move_hec_tls.go
- move_otlp_insecure.go
- normalize_gcp.go
- otlp_histogram_attr.go
- overwrite_properties.go
- remove_ballast_key.go
- remove_memory_ballast_key.go