elastic / elastic/elastic-agent
[EDOT Collector] Depecation warnings
- Dominant language
- Go
- Stars
- 275
- Forks
- 264
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 312
Description
Today I updated our operators to v9.4.3 to have [deprecation warnings](https://github.com/elastic/elastic-agent/issues/14351) fixed.
Now the logs report two new deprecation warnings, both coming from your values.yaml:
```
{"level":"warn","ts":"2026-07-03T13:27:18.592Z","caller":"builders/builders.go:40","msg":"\"hostmetrics\" alias is deprecated; use \"host_metrics\" instead","resource":{"k8s.pod.name":"opentelemetry-kube-stack-daemon-collector-9rvr4","service.instance.id":"950b952c-3df6-46ed-aa60-e4c1ea57ce59","service.name":"elastic-otel-collector","service.version":"9.4.3"},"otelcol.component.id":"hostmetrics","otelcol.component.kind":"receiver","otelcol.signal":"metrics"}
{"level":"warn","ts":"2026-07-03T13:27:18.592Z","caller":"builders/builders.go:40","msg":"\"kubeletstats\" alias is deprecated; use \"kubelet_stats\" instead","resource":{"k8s.pod.name":"opentelemetry-kube-stack-daemon-collector-9rvr4","service.instance.id":"950b952c-3df6-46ed-aa60-e4c1ea57ce59","service.name":"elastic-otel-collector","service.version":"9.4.3"},"otelcol.component.id":"kubeletstats","otelcol.component.kind":"receiver","otelcol.signal":"metrics"}
```
This is now getting annoying. I would appreciate if these deprecation warnings get fixed as well AND the version containing the fix will not show new ones. Ideally there would be some CI/CD checks for things like this.
Contributor guide
Research direction
Start by locating the collector's values.yaml and compare the configured hostmetrics and kubeletstats aliases with the deprecation warnings shown for operators v9.4.3. Reproduce the configuration and verify that the resulting logs no longer contain these warnings; investigate whether a CI/CD check can prevent deprecated aliases from being introduced again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- devops, observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100