Skip to content

Commit

Permalink
fix(metrics): use promauto for histogram so it auto registers
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhop committed Aug 6, 2024
1 parent eefcbc5 commit 954c863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/manager/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (
[]string{"module", "script"},
)

metricManagerModuleRunDuration = prometheus.NewHistogramVec(
metricManagerModuleRunDuration = promauto.NewHistogramVec(
prometheus.HistogramOpts{
Name: "mango_manager_module_run_duration_seconds",
Help: "Histogram of durations of how long it took a given module to run, in seconds",
Expand Down

0 comments on commit 954c863

Please sign in to comment.