Skip to content

rpc: add prometheus metrics for dropped subscriptions#4835

Closed
niklasad1 wants to merge 25 commits intomasterfrom
na-jsonrpsee-v0.23-with-ip-addr
Closed

rpc: add prometheus metrics for dropped subscriptions#4835
niklasad1 wants to merge 25 commits intomasterfrom
na-jsonrpsee-v0.23-with-ip-addr

Conversation

@niklasad1
Copy link
Copy Markdown
Contributor

Close #4184

This PR adds prometheus metrics that keeps track of the number of subscriptions and which peer that caused that.
This is useful for rpc node operators to know how many subscriptions are dropped and which peers that are causing that i.e, to take action to ban certain peers that are just creating lots of subscriptions and don't read them fast-enough...

Builds on #4730

@niklasad1 niklasad1 changed the title rpc: add prometheos metrics for dropped subscriptions rpc: add prometheus metrics for dropped subscriptions Jun 19, 2024
@niklasad1 niklasad1 force-pushed the na-jsonrpsee-v0.23-with-ip-addr branch from 44979f7 to c7be842 Compare June 19, 2024 14:08
@paritytech-cicd-pr
Copy link
Copy Markdown

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable 2/3
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6639570

@niklasad1 niklasad1 closed this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rpc server: Subscription buffer limit exceeded

2 participants