forked from sigp/lighthouse
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70e3b82
commit d029c7b
Showing
4 changed files
with
112 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
pub use lighthouse_metrics::*; | ||
|
||
pub const GET_PAYLOAD: &str = "get_payload"; | ||
pub const NEW_PAYLOAD: &str = "new_payload"; | ||
pub const FORKCHOICE_UPDATED: &str = "forkchoice_updated"; | ||
pub const GET_TERMINAL_POW_BLOCK_HASH: &str = "get_terminal_pow_block_hash"; | ||
pub const IS_VALID_TERMINAL_POW_BLOCK_HASH: &str = "is_valid_terminal_pow_block_hash"; | ||
|
||
lazy_static::lazy_static! { | ||
pub static ref EXECUTION_LAYER_PROPOSER_INSERTED: Result<IntCounter> = try_create_int_counter( | ||
"execution_layer_proposer_inserted", | ||
"Count of times a new proposer is known", | ||
); | ||
pub static ref EXECUTION_LAYER_PROPOSER_DATA_UPDATED: Result<IntCounter> = try_create_int_counter( | ||
"execution_layer_proposer_data_updated", | ||
"Count of times new proposer data is supplied", | ||
); | ||
pub static ref EXECUTION_LAYER_REQUEST_TIMES: Result<HistogramVec> = try_create_histogram_vec( | ||
"execution_layer_request_times", | ||
"Duration of calls to ELs", | ||
&["method"] | ||
); | ||
pub static ref EXECUTION_LAYER_PAYLOAD_ATTRIBUTES_LOOKAHEAD: Result<Histogram> = try_create_histogram( | ||
"execution_layer_payload_attributes_lookahead", | ||
"Duration between a fcU call with PayloadAttributes and when the block should be produced", | ||
); | ||
} |