Reduce submit frequency of counters that are very frequent and killing metrics DB (#4027)

This commit is contained in:
Pankaj Garg
2019-04-26 20:37:40 -07:00
committed by GitHub
parent a056c1f18f
commit 87f1bd58b9
3 changed files with 10 additions and 5 deletions

View File

@@ -1298,11 +1298,11 @@ fn try_erasure_recover(
}
}
ErasureMetaStatus::StillNeed(needed) => {
inc_new_counter_info!("blocktree-erasure-blobs_needed", needed);
inc_new_counter_info!("blocktree-erasure-blobs_needed", needed, 0, 1000);
None
}
ErasureMetaStatus::DataFull => {
inc_new_counter_info!("blocktree-erasure-complete", 1);
inc_new_counter_info!("blocktree-erasure-complete", 1, 0, 1000);
None
}
};