-
Notifications
You must be signed in to change notification settings - Fork 534
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
Add appropriate prefixes to the Edge metrics #1043
Add appropriate prefixes to the Edge metrics #1043
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1043 +/- ##
========================================
Coverage 53.88% 53.89%
========================================
Files 132 132
Lines 17564 17566 +2
========================================
+ Hits 9465 9467 +2
Misses 7451 7451
Partials 648 648
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
LGTM
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.
LGTM 🚀
After we merge this PR, we'll need to update our docs as well as our own Prometheus scrapers.
What's changed:
txpool_pending_transactions
=>edge_txpool_pending_transactions
consensus_validators
=>edge_consensus_validators
consensus_rounds
=>does not exist anymore
-- we should restore this metric asapconsensus_num_txs
=>edge_consensus_num_txs
consensus_block_interval
=>edge_consensus_block_interval
network_peers
=>edge_network_peers
network_outbound_connections_count
=>edge_network_outbound_connections_count
network_inbound_connections_count
=>edge_network_inbound_connections_count
network_pending_outbound_connections_count
=>edge_network_pending_outbound_connections_count
network_pending_inbound_connections_count
=>edge_network_pending_inbound_connections_count
Not sure where it has vanished, but good point. 🙂 Let me try find it in git history and re-introduce it. EDIT: We can consider maybe doing something similar like we did for the polybft (although in the polybft it denotes how many rounds did it take to seal a block and is available only after block is finalized and inserted): https://github.com/0xPolygon/polygon-edge/pull/650/files#diff-496bebdd7de5ae02eb3ea22e95ac9270069798437f3477475ee59fb60dca0492L503. |
With the introduction of Restoring this metric should probably be a dedicated task... |
Just to clarify.
|
Description
This PR accommodates prefixes to the existing Edge metrics in order to categorize and align them with the documentation: https://wiki.polygon.technology/docs/edge/configuration/prometheus-metrics/.
Existing metrics fall into 3 categories: consensus, network and tx pool.
Changes include
Breaking changes
Datadog dashboards need to be changed in order to include renamed metrics.
Checklist
Testing