Skip to content

Commit

Permalink
convert value keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Jul 16, 2024
1 parent 01dde44 commit 7ba86fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/helper/otel_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func GetOtelMetrics(flpMetrics []api.MetricsItem) []api.MetricsItem {
Name: convertToOtelLabel(m.Name),
Type: m.Type,
Filters: convertToOtelFilters(m.Filters),
ValueKey: m.ValueKey,
ValueKey: convertToOtelLabel(m.ValueKey),
Labels: convertToOtelLabels(m.Labels),
Buckets: m.Buckets,
ValueScale: m.ValueScale,
Expand Down
2 changes: 1 addition & 1 deletion pkg/helper/otel_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestOtelMetrics(t *testing.T) {
Type: "equal",
},
},
ValueKey: "Bytes",
ValueKey: "bytes",
Labels: []string{"source.k8s.name"},
}, metrics[0])
}

0 comments on commit 7ba86fe

Please sign in to comment.