satellite/audit/verifier: add metric for number of successfully downloaded shares

Change-Id: Ia4f1dc6e088db802e340aaecf80cc7ef6dc237a4
This commit is contained in:
Moby von Briesen 2020-02-26 16:19:58 -05:00 committed by Maximillian von Briesen
parent 1f7c3be8f9
commit 6043d01c90
2 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,7 @@ storj.io/storj/satellite/audit."reverify_successes_global" Meter
storj.io/storj/satellite/audit."reverify_total_in_segment" IntVal
storj.io/storj/satellite/audit."reverify_unknown" IntVal
storj.io/storj/satellite/audit."reverify_unknown_global" Meter
storj.io/storj/satellite/audit."verify_shares_downloaded_successfully" IntVal
storj.io/storj/satellite/gracefulexit."graceful_exit_fail_max_failures_percentage" Meter
storj.io/storj/satellite/gracefulexit."graceful_exit_fail_validation" Meter
storj.io/storj/satellite/gracefulexit."graceful_exit_final_bytes_transferred" IntVal

View File

@ -220,6 +220,8 @@ func (verifier *Verifier) Verify(ctx context.Context, path storj.Path, skip map[
zap.Error(share.Error))
}
mon.IntVal("verify_shares_downloaded_successfully").Observe(int64(len(sharesToAudit))) //locked
required := int(pointer.Remote.Redundancy.GetMinReq())
total := int(pointer.Remote.Redundancy.GetTotal())