-
Notifications
You must be signed in to change notification settings - Fork 1.6k
implement remaining subsystem metrics #1770
Conversation
drahnr
left a comment
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, an improvement might be to use a custom enum and use the variants directly, to avoid the noisy (()) clutter (nit).
|
|
||
| #[derive(Clone)] | ||
| struct MetricsInner { | ||
| gossipped_own_availability_bitfields: prometheus::Counter<prometheus::U64>, |
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.
Not 100% sure about the prometheus API, but there should Gauges which might be more suitable?
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.
Gauge is allowed to go down as well, here we count the total number of bitfields gossipped over time. Prometheus has query language to ask what would that be in a specific time range.
Any specific reason you think it might be more suitable?
drahnr
left a comment
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.
Added a few inline observations / possible impro topics (but really tiny nits and vague ideas)
* master: Make collation an optional return (#1787) XCM: Land xcm-handler and xcm-executor (#1771) v0.8.25 (#1785) add two node local net script (#1781) Adjust max nominators down to 128 (from 256) (#1782) Companion for substrate/pull/7215 (#1768) Remove Stale Upgrades (#1780) Update Polkadot Weights for Substrate 2.0 (#1761) Parachains v1 registrar module. (#1559) Derive `From` for `AllMessages` and simplify `send_msg` (#1774) implement remaining subsystem metrics (#1770) Companion for paritytech/substrate#7236 (#1773) WIP: remove deprecated only/except clauses, build is now manual on PRs (#1769) Increase Westend `spec_version` (#1766) move Metrics to utils (#1765)
Part of #1482 (only alerts are missing now).