-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Prometheus metrics for tx execution and 0L VDFs (#1102)
* add prints for new transactions, mempool latency, executor steps time, and vdf fimer. * more prints on a per tx level * add sequence number to tx debug * print payload * payload too noisy * adds more fine-grained executor metrics to prometheus * adds more metrics for Prometheus monitoring for VDF verification and transaction execution * adds two new Prometheus metrics to track how many VDF proofs are submitted and how many fail verification because of non-met criteria. Co-authored-by: 0o-de-lally <[email protected]>
- Loading branch information
1 parent
cf9900a
commit b7e8d06
Showing
10 changed files
with
138 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
use diem_metrics::{ | ||
register_histogram, register_int_counter, Histogram, IntCounter | ||
}; | ||
use once_cell::sync::Lazy; | ||
|
||
pub static MOVE_VM_NATIVE_VERIFY_VDF_LATENCY: Lazy<Histogram> = Lazy::new(|| { | ||
register_histogram!( | ||
"diem_move_vm_native_verify_vdf_latency", | ||
"Latency to verify a VDF challenge" | ||
) | ||
.unwrap() | ||
}); | ||
|
||
pub static MOVE_VM_NATIVE_VERIFY_VDF_PROOF_COUNT: Lazy<IntCounter> = Lazy::new(|| { | ||
register_int_counter!("diem_move_vm_native_verify_vdf_proof_count", "Cumulative number of verified proofs").unwrap() | ||
}); | ||
|
||
pub static MOVE_VM_NATIVE_VERIFY_VDF_PROOF_ERROR_COUNT: Lazy<IntCounter> = Lazy::new(|| { | ||
register_int_counter!("diem_move_vm_native_verify_vdf_proof_error_count", "Cumulative number of errors while verifying proofs").unwrap() | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters