Replace dots with slashes in OTEL metric families for hierarchical grouping (#21371)
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Copilot committed
Dec 3, 2025 at 12:08 UTC
d7f3bf348bb4bf63a234a47dfb931fe75dcbb99b
1 file changed
+1
-1
src/crates/jf/otel-plugin/src/netdata_chart.rs
+1
-1
@@ -149,7 +149,7 @@ impl NetdataChart {
149
let title = &self.metric_description;
150
let units = &self.metric_unit;
151
let context = format!("otel.{}", &self.metric_name);
152
- let family = context.clone();
152
+ let family = self.metric_name.replace('.', "/");
153
let chart_type = if self.is_histogram() {
154
"heatmap"
155
} else {