Skip to content

Commit f7650e4

Browse files
authored
Fix Prometheus metrics prefix
Most default Prometheus or Prometheus-like systems reject metrics names that don't match `[a-zA-Z_:][a-zA-Z0-9_:]*`
1 parent df8c2bb commit f7650e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/metrics/metrics_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
)
1818

1919
func SetupOtelMetricsProvider() error {
20-
metricsExporter, err := prometheus.New(prometheus.WithNamespace("sei-chain"))
20+
metricsExporter, err := prometheus.New(prometheus.WithNamespace("sei_chain"))
2121
if err != nil {
2222
return fmt.Errorf("failed to create Prometheus exporter: %w", err)
2323
}

0 commit comments

Comments
 (0)