Skip to content

Commit

Permalink
fix(metrics): update name normalization for custom metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3Shadowbroker committed Oct 28, 2024
1 parent 01d5622 commit 4fa3285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func GetOrCreate(resourceConfig *config.ResourceConfiguration) *prometheus.Gauge
}

func GetOrCreateCustom(name string) *prometheus.GaugeVec {
var gaugeName = strings.ToLower(name)
var gaugeName = strings.ReplaceAll(name, ".", "_")

gauge, ok := gauges[name]
if !ok {
Expand Down

0 comments on commit 4fa3285

Please sign in to comment.