OpenTelemetryCollector #
OpenTelemetryCollector的2个项目: opentelemetry-collector
和opentelemetry-collector-contrib
关于OpenTelemetryCollector的配置,参考:
- https://github.com/open-telemetry/opentelemetry-collector
- https://github.com/open-telemetry/opentelemetry-collector-contrib
regex_parser #
在regex101上选择FLAVOR为Golang进行调试。
配置更新跟踪 #
v0.116 #
retry::max_requests has been deprecated, and will be removed in a future version. Use retry::max_retries
日志:
1warn elasticsearchexporter@v0.116.0/config.go:383 retry::max_requests has been deprecated, and will be removed in a future version. Use retry::max_retries
旧的配置:
1exporters: 2 debug: 3 verbosity: basic 4 elasticsearch/log: 5 ... 6 retry: 7 enabled: true 8 max_requests: 5 9 initial_interval: 100ms 10 max_interval: 1m 11 ...
新的配置:
1exporters: 2 debug: 3 verbosity: basic 4 elasticsearch/log: 5 ... 6 retry: 7 enabled: true 8 max_retries: 5 9 initial_interval: 100ms 10 max_interval: 1m 11 ...
v0.111 #
service::telemetry::metrics::address is being deprecated in favor of service::telemetry::metrics::readers
日志:
1warn [email protected]/service.go:191 service::telemetry::metrics::address is being deprecated in favor of service::telemetry::metrics::readers
过时的配置:
1service: 2 telemetry: 3 logs: 4 level: "info" 5 metrics: 6 address: 127.0.0.1:8888
新的配置:
1service: 2 telemetry: 3 logs: 4 level: "info" 5 metrics: 6 readers: 7 - pull: 8 exporter: 9 prometheus: 10 host: 127.0.0.1 11 port: 8888
dedup is deprecated, and is always enabled
日志:
1warn elasticsearchexporter@v0.111.0/config.go:356 dedup is deprecated, and is always enabled
旧的配置:
1exporters: 2 debug: 3 verbosity: basic 4 elasticsearch/log: 5 mapping: 6 dedup: true 7 dedot: false
新的配置删除
dedup: true