From 6043d01c907636960c6244e6cad5acae4236b5dd Mon Sep 17 00:00:00 2001 From: Moby von Briesen Date: Wed, 26 Feb 2020 16:19:58 -0500 Subject: [PATCH] satellite/audit/verifier: add metric for number of successfully downloaded shares Change-Id: Ia4f1dc6e088db802e340aaecf80cc7ef6dc237a4 --- monkit.lock | 1 + satellite/audit/verifier.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/monkit.lock b/monkit.lock index 3fab6e0e5..1394e5482 100644 --- a/monkit.lock +++ b/monkit.lock @@ -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 diff --git a/satellite/audit/verifier.go b/satellite/audit/verifier.go index f5d62e2d7..a54681312 100644 --- a/satellite/audit/verifier.go +++ b/satellite/audit/verifier.go @@ -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())