influxdata / influxdata/telegraf

Support dot-separated OpenTelemetry metric names in OpenTelemetry output plugin

Open
#18,251 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
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. otel vs prometheus)/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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.