OTEL-074: service.telemetry.metrics.address (deprecated, use readers config)
Severity: warn (advisory)
Rule Details
The old service.telemetry.metrics.address field is deprecated in favor of the newer service.telemetry.metrics.readers configuration, which supports multiple exporters (Prometheus, OTLP, file) and more expressive wiring. The old field still works but is scheduled for removal. Migrate to readers when you touch this block next.
This rule fires when service.telemetry.metrics.address is set.
Options
This rule has no options.
Examples
Avoid
service:
telemetry:
metrics:
level: detailed
address: "localhost:8888"
Prefer
service:
telemetry:
metrics:
level: detailed
readers:
- pull:
exporter:
prometheus:
host: localhost
port: 8888
When Not To Use It
Older Collector versions that do not yet understand readers. Check the release notes of your pinned version before migrating.
Related Rules
- OTEL-069 — telemetry metrics level set to
none - OTEL-070 — telemetry metrics address bound to
0.0.0.0
Version
Available since augur v0.1.0.
Further Reading
Resources
- Rule source:
policy/main/lifecycle.rego