Skip to content

Commit

Permalink
Enable metrics by default with init block
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 13, 2025
1 parent 27b6b8e commit caf4d61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions metrics/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import (
dto "github.com/prometheus/client_model/go"
)

func init() {
metrics.Enabled = true
}

type Gatherer struct {
registry Registry
}
Expand Down

0 comments on commit caf4d61

Please sign in to comment.