Replace dots with slashes in OTEL metric families for hierarchical grouping by Copilot · Pull Request #21371 · netdata/netdata

@ilyam8

…ouping

Modified both the Rust and Go OTEL plugins to use slashes instead of dots
in the family field, enabling hierarchical grouping in the dashboard.

For example:
- Before: otel.dotnet.exceptions
- After: otel/dotnet/exceptions

Also fixed a pre-existing bug in convert_test.go where Convert was called
instead of convert (lowercase).

Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>

Copilot AI changed the title [WIP] Fix OTEL metrics grouping in dashboard Replace dots with slashes in OTEL metric families for hierarchical grouping

Dec 1, 2025

@ilyam8

Removed modifications to Go otel-collector code as per review feedback.
The OTEL plugin is Rust-only. The fix only needs to replace dots with
slashes in the family field in the Rust plugin.

Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>

@ilyam8 ilyam8 marked this pull request as ready for review

December 1, 2025 17:03

cubic-dev-ai[bot]

@ilyam8

The family field should just use the metric name with dots replaced by slashes,
without the otel/ prefix (e.g., dotnet/exceptions instead of otel/dotnet/exceptions).

Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>

sashwathn

@ilyam8 ilyam8 deleted the copilot/fix-otel-metrics-grouping branch

December 3, 2025 10:09

stelfrag pushed a commit to stelfrag/netdata that referenced this pull request

Dec 3, 2025
…ouping (netdata#21371)

Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
(cherry picked from commit d7f3bf3)

Ferroin pushed a commit that referenced this pull request

Dec 3, 2025
…ouping (#21371)

Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
(cherry picked from commit d7f3bf3)