influxdata / influxdata/telegraf
Support dot-separated OpenTelemetry metric names in OpenTelemetry output plugin
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 17.8k
- Forks
- 5.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 161
Description
Use Case
We use Telegraf as an OpenTelemetry metrics pipeline component,
exporting metrics via OTLP to an OpenTelemetry-native backend.
Metrics are defined according to OpenTelemetry semantic conventions
(e.g. http.server.duration, http.client.request.count).
To keep metric naming consistent across the OpenTelemetry ecosystem,
it is important to preserve dot-separated metric names.
Expected behavior
Telegraf OpenTelemetry output should be able to emit metrics using
dot-separated names as defined by OpenTelemetry semantic conventions.
Ideally this would be configurable, for example:
- an option to preserve OTEL metric names
- or a naming mode (e.g.
otelvsprometheus)/separator mode (e.g..vs_)
Actual behavior
This also impacts existing dashboards and alerting rules,
as metric names emitted by Telegraf differ from
OpenTelemetry-recommended names.
As a result, dashboards and alerts defined using OTEL metric names
cannot be reused without manual renaming.
Additional info
Impact on production usage:
- Existing dashboards and alerting rules are built around
OpenTelemetry semantic metric names - Using Telegraf requires renaming metrics or duplicating dashboards
- This increases migration cost and risk of inconsistencies
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the OpenTelemetry output plugin and tracing how metric names are converted before export. Review the plugin's configuration and existing tests, then define the smallest supported naming option that preserves dot-separated names. Done means OpenTelemetry semantic names can be emitted without breaking the existing naming behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100