Skip to content

peerset/metrics: Add notification layer metrics for peer states#11574

Open
lexnv wants to merge 7 commits intomasterfrom
lexnv/peerset-metrics
Open

peerset/metrics: Add notification layer metrics for peer states#11574
lexnv wants to merge 7 commits intomasterfrom
lexnv/peerset-metrics

Conversation

@lexnv
Copy link
Copy Markdown
Contributor

@lexnv lexnv commented Mar 31, 2026

This PR adds two new metrics to enhance our monitoring insights into the notification protocol.

The data exposed:

  • connected peers grouped by in / out and kind (reserve / non-reserve)
  • disconnected and backed off peers

Because the slot counts are tightly coupled with the full peerset state machine, I've picked an eventually consistent model to easily bump the metrics at 1s tick intervals.

Dashboards

The following dashboard shows how many peers are backedoff on the collation protocol:

Screenshot 2026-04-01 at 17 15 46

The following dashboard shows how many peers are connected (and reserved / unreserved):
Screenshot 2026-04-01 at 17 15 20

Part of:

lexnv added 3 commits March 31, 2026 10:58
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
@lexnv lexnv self-assigned this Mar 31, 2026
@lexnv lexnv added the T0-node This PR/Issue is related to the topic “node”. label Mar 31, 2026
@lexnv
Copy link
Copy Markdown
Contributor Author

lexnv commented Mar 31, 2026

/cmd prdoc --audience node_dev --bump patch

github-actions Bot and others added 4 commits March 31, 2026 11:07
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
@lexnv lexnv added the A4-backport-stable2603 Pull request must be backported to the stable2603 release branch label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A4-backport-stable2603 Pull request must be backported to the stable2603 release branch T0-node This PR/Issue is related to the topic “node”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants