Skip to content

Commit

Permalink
Add registry missing in PR 185 to Metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerwins committed Oct 15, 2021
1 parent 9c9340d commit e65d5bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yorkie/metrics/prometheus/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type Metrics struct {
func NewMetrics() *Metrics {
reg := prometheus.NewRegistry()
metrics := &Metrics{
registry: reg,
agentVersion: promauto.With(reg).NewGaugeVec(prometheus.GaugeOpts{
Namespace: "yorkie",
Subsystem: "agent",
Expand Down

0 comments on commit e65d5bb

Please sign in to comment.