Statediff Prometheus metrics refactor #39

Merged
telackey merged 5 commits from statediff-prometheus into v1.9.24-statediff 2020-11-24 07:29:52 +00:00
Member

Resolves https://github.com/vulcanize/go-ethereum/issues/36. (rebased onto https://github.com/vulcanize/go-ethereum/pull/38)

Note - the existing prometheus integration is basic and may not support the same metrics types we use - e.g. the DB blockedSeconds/WaitDuration feeds a float Counter, which is not implemented (I'm rounding to int - could implement it or do something hacky like add to a gauge).

To do:

  • decide how/how often to poll DB stats
  • naming (namespace & subsystem) for indexing & DB metrics
Resolves https://github.com/vulcanize/go-ethereum/issues/36. (rebased onto https://github.com/vulcanize/go-ethereum/pull/38) Note - the existing prometheus integration is basic and may not support the same metrics types we use - e.g. the DB `blockedSeconds`/`WaitDuration` feeds a float Counter, which is not implemented (I'm rounding to int - could implement it or do something hacky like add to a gauge). To do: - [x] decide how/how often to poll DB stats - [x] naming (namespace & subsystem) for indexing & DB metrics
Author
Member

Verified the metrics output shows up at /debug/metrics, per https://blog.ethereum.org/2019/07/10/geth-v1-9-0/

Verified the metrics output shows up at `/debug/metrics`, per https://blog.ethereum.org/2019/07/10/geth-v1-9-0/
i-norden requested changes 2020-11-16 13:12:30 +00:00
i-norden left a comment
Member

Getting statediff/indexer/indexer.go:44:22: undefined: RegisterIndexerMetrics in the CI make build step

Getting `statediff/indexer/indexer.go:44:22: undefined: RegisterIndexerMetrics` in the CI make build step
i-norden approved these changes 2020-11-18 14:27:46 +00:00
i-norden left a comment
Member

LGTM, we will want to expose the latest sync height and statediff height over prometheus eventually but that can be a separate PR: https://github.com/vulcanize/supernode_ops/issues/24

LGTM, we will want to expose the latest sync height and statediff height over prometheus eventually but that can be a separate PR: https://github.com/vulcanize/supernode_ops/issues/24
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/go-ethereum#39
No description provided.