-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(metrics): add block transaction count and SR set change monitoring #6624
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
base: develop
Are you sure you want to change the base?
Changes from all commits
9b80f91
1d2de1a
1c0c1b7
bc87e2e
6bece43
39dd708
e92b8e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ class MetricsCounter { | |
| init(MetricKeys.Counter.TXS, "tron txs info .", "type", "detail"); | ||
| init(MetricKeys.Counter.MINER, "tron miner info .", "miner", "type"); | ||
| init(MetricKeys.Counter.BLOCK_FORK, "tron block fork info .", "type"); | ||
| init(MetricKeys.Counter.SR_SET_CHANGE, "tron sr set change .", "action", "witness"); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Practical impact assessment:
Possible approaches:
|
||
| init(MetricKeys.Counter.P2P_ERROR, "tron p2p error info .", "type"); | ||
| init(MetricKeys.Counter.P2P_DISCONNECT, "tron p2p disconnect .", "type"); | ||
| init(MetricKeys.Counter.INTERNAL_SERVICE_FAIL, "internal Service fail.", | ||
|
|
||
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.
The name
tron:sr_set_changecan be misleading — it sounds like it tracks changes to the entire SR set, when it actually monitors rotation of the top 27 block-producing SRs (Active Witnesses).Suggested alternatives for better clarity:
tron:active_sr_changetron:active_witness_changetron:top27_sr_changeThis way, operators can immediately understand what the metric represents when viewing Prometheus dashboards.