-
Notifications
You must be signed in to change notification settings - Fork 106
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 metrics for mempool transaction verification and state checks, including failures #2626
Comments
I've used e.g. |
Currently
|
In Rust, the dynamic size can be calculated using So maybe we can split that into a separate ticket. |
We could add this size to |
Yep; for instance, we've added the |
I expect we'll want a trait for this, and maybe a custom derive macro. We could also implement the trait using |
So, I've thrown this together: https://github.com/str4d/memuse |
We can't do this generically, because
|
Now published as |
Here's a proposal / suggestions / questions: From zcashd (use same names?)
Already existing (from tx verifier/downloader) that we should rename
To be created
TODO: should we use 'gauge' suffix for gauges? We don't do that anywhere else, but it may be interesting to have both the counter and gauge for e.g. rejected transactions, maybe? TODO: from design brainstorm document:
|
At the meeting today, we talked about triaging metrics based on two questions:
Too Much WorkHere are the metrics that aren't quick, so we should skip them:
But we might want to do this alternative:
Bug FindingAll these metrics will help us find bugs. But the higher-level metrics can help us discover issues to investigate. Then we can add more detailed metrics as needed. So let's focus on the number of transactions and rejections first. We might also want a transaction version dashboard, because Naming
If the metric represents exactly the same thing, we should use the same names.
https://prometheus.io/docs/practices/naming/#metric-names So I suggest these renames: Counters:
Gauges:
See the Prometheus metric naming guide for more examples and suggestions. |
Should this not be |
@teor2345 thanks for the feedback! I've incorporated it and posted the result in the ticket description. I've added I'm not sure about using Feedback is still welcome! |
Motivation
Specifications
Designs
See below
Related Work
Design (discussed below)
From zcashd (use same names)
zcash.mempool.size.transactions [gauge]
zcash.mempool.size.bytes [gauge]
zcash.mempool.usage.bytes [gauge]
Already existing (from tx verifier/downloader) that we should rename
mempool.downloaded.transactions.total [counter]
(renamed fromgossip.downloaded.transaction.count
)mempool.pushed.transactions.total [counter]
(renamed fromgossip.pushed.transaction.count
)mempool.verified.transactions.total [counter]
(renamed fromgossip.verified.transaction.count
)mempool.cancelled.verify.tasks.total [counter]
(renamed fromgossip.cancelled.count
)mempool.currently.queued.transactions.total [gauge]
(renamed fromgossip.queued.transaction.count
)To be created
mempool.queued.transactions.total [counter]
mempool.rejected.transaction.ids.total [gauge]
mempool.rejected.transaction.ids.bytes [gauge]
mempool.failed.verify.tasks.total [counter]
mempool.gossiped.transactions.total [counter]
From design brainstorm document:
The text was updated successfully, but these errors were encountered: