Skip to content

Commit

Permalink
[FIX] Rebasing
Browse files Browse the repository at this point in the history
Signed-off-by: rita.canavarro <rita.canavarro@farfetch.com>
  • Loading branch information
rita.canavarro committed Jul 19, 2023
1 parent b20aa3e commit e873ae8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pkg/shipper/shipper.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,12 @@ func newMetrics(reg prometheus.Registerer) *metrics {
m.uploadedCompacted = promauto.With(reg).NewGauge(prometheus.GaugeOpts{
Name: "thanos_shipper_upload_compacted_done",
Help: "If 1 it means shipper uploaded all compacted blocks from the filesystem.",
}
if uploadCompacted {
m.uploadedCompacted = promauto.With(reg).NewGauge(uploadCompactedGaugeOpts)
} else {
m.uploadedCompacted = promauto.With(nil).NewGauge(uploadCompactedGaugeOpts)
}

})
m.uploadedBytes = promauto.With(reg).NewCounter(prometheus.CounterOpts{
Name: "thanos_shipper_uploaded_bytes_total",
Help: "Total number of uploaded bytes",
})

return &m
}

Expand Down

0 comments on commit e873ae8

Please sign in to comment.