Skip to content

Commit

Permalink
fix: metric
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Dec 6, 2022
1 parent 18d658f commit 350d7b4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/pullsync/metrics.go
Expand Up @@ -10,12 +10,12 @@ import (
)

type metrics struct {
Offered prometheus.Counter // number of chunks offered
Wanted prometheus.Counter // number of chunks wanted
Delivered prometheus.Counter // number of chunk deliveries
DbOps prometheus.Counter // number of db ops
DuplicateRuid prometheus.Counter // number of duplicate RUID requests we got
LastReceived prometheus.GaugeVec // last timestamp of the received chunks per bin
Offered prometheus.Counter // number of chunks offered
Wanted prometheus.Counter // number of chunks wanted
Delivered prometheus.Counter // number of chunk deliveries
DbOps prometheus.Counter // number of db ops
DuplicateRuid prometheus.Counter // number of duplicate RUID requests we got
LastReceived *prometheus.GaugeVec // last timestamp of the received chunks per bin
}

func newMetrics() metrics {
Expand Down Expand Up @@ -52,7 +52,7 @@ func newMetrics() metrics {
Name: "duplicate_ruids",
Help: "Total duplicate RUIDs.",
}),
LastReceived: *prometheus.NewGaugeVec(
LastReceived: prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Namespace: m.Namespace,
Subsystem: subsystem,
Expand Down

0 comments on commit 350d7b4

Please sign in to comment.