-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(starknet_sequencer_metrics): define required metrics for the remote servers #4243
Conversation
0b4f69e
to
74193f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion
crates/starknet_sequencer_metrics/src/metric_definitions.rs
line 124 at r1 (raw file):
MetricScope::Infra => { // Local server counters { BATCHER_MSGS_RECEIVED, "batcher_msgs_received", "Counter of messages received by batcher component", 0 },
Please add a todo to rename these so they are consistent with the remote ones:
BATCHER_MSGS_RECEIVED
-> BATCHER_LOCAL_MSGS_RECEIVED
The metric name and description as well.
You can address that in later pr on the top of this stack
Code quote:
{ BATCHER_MSGS_RECEIVED, "batcher_msgs_received"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @lev-starkware)
crates/starknet_sequencer_metrics/src/metric_definitions.rs
line 143 at r1 (raw file):
{ BATCHER_REMOTE_MSGS_RECEIVED, "batcher_remote_msgs_received", "Counter of messages received by batcher remote server", 0 }, { BATCHER_REMOTE_VALID_MSGS_RECEIVED, "batcher_remote_valid_msgs_received", "Counter of valid messages received by batcher remote server", 0 }, { BATCHER_REMOTE_MSGS_PROCESSED, "batcher_remote_msgs_processed", "Counter of messages processed by batcher remote server", 0 },
Is there a way to make this a fn that takes only the name and produces the literal? Maybe a const fn?
Code quote:
Counter of messages processed by batcher remote server
74193f1
to
3a0d07c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @Itay-Tsabary-Starkware)
crates/starknet_sequencer_metrics/src/metric_definitions.rs
line 124 at r1 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
Please add a todo to rename these so they are consistent with the remote ones:
BATCHER_MSGS_RECEIVED
->BATCHER_LOCAL_MSGS_RECEIVED
The metric name and description as well.
You can address that in later pr on the top of this stack
Done.
crates/starknet_sequencer_metrics/src/metric_definitions.rs
line 143 at r1 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
Is there a way to make this a fn that takes only the name and produces the literal? Maybe a const fn?
Sorry, I don't understand exactly what you are proposing.
3a0d07c
to
4e7e5d9
Compare
…ote servers commit-id:4bc2179d
4e7e5d9
to
9ee7a85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @lev-starkware)
✓ Commit merged in pull request #4262 |
Stack: