Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pullsync metric pointer #3628

Merged
merged 1 commit into from Dec 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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