statediff: Metrics for latest block #44
No reviewers
Labels
No Label
bug
critical
duplicate
enhancement
epic
help wanted
in progress
invalid
low priority
question
rebase
v1
v5
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/go-ethereum#44
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "statediff-metrics-latestblock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds metrics (in
statediff/
namespace) for:To do:
last block synced on blockchain- usingchain/head/block
Addresses https://github.com/vulcanize/supernode_ops/issues/24.
Yeah I think "statediff" would be more appropriate here
Not sure what this would be since the namespace is already "statediff", maybe "service" since the type these metrics are coming from within is the service?
@ -0,0 +45,4 @@
writeLoopChannelLen: metrics.NewGauge(),
}
subsys := "service"
reg.Register(metricName(subsys, "last_sync_height"), ctx.lastSyncHeight)
Looks like
lastSyncHeight
still needs to be updated somewhere (from within core.BlockChain).@ -0,0 +45,4 @@
writeLoopChannelLen: metrics.NewGauge(),
}
subsys := "service"
reg.Register(metricName(subsys, "last_sync_height"), ctx.lastSyncHeight)
Doh yeah you mention that in the OP
LGTM once that last metric is filled in
@ -0,0 +45,4 @@
writeLoopChannelLen: metrics.NewGauge(),
}
subsys := "service"
reg.Register(metricName(subsys, "last_sync_height"), ctx.lastSyncHeight)
Yeah, the chain/head/block metric seems to be what we want - at least, looking at the blockchain code I don't really see a more appropriate location to track head.
I pushed an update to name these under
statediff/service/
, and rename the indexer ones tostatediff/indexer