-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Replace dots with slashes in OTEL metric families for hierarchical grouping #21371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@copilot the fix is very simple - we need to replace dots with |
No. You don't need to modify any go code. otel is rust only. |
…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 <[email protected]>
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 <[email protected]>
|
@copilot remove "otel/" prefix in the family, we don't need it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 1 file
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 <[email protected]>
|
Flagging @vkalintiris for review on this as he’s the de-facto code owner. |
…ouping (netdata#21371) Co-authored-by: ilyam8 <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> (cherry picked from commit d7f3bf3)
…ouping (#21371) Co-authored-by: ilyam8 <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> (cherry picked from commit d7f3bf3)

Summary
Fixes #21239
OTEL metrics appear as flat, ungrouped items in the dashboard because the family field uses dots as separators. This change replaces dots with slashes in metric family names to enable hierarchical grouping.
Before:
otel.dotnet.exceptions(flat)After:
dotnet/exceptions(grouped underdotnet)Changes:
src/crates/jf/otel-plugin/src/netdata_chart.rs): Generate family by replacing dots with slashes in the metric nameTest Plan
cargo checkpassesAdditional Information
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.