NethermindEth / juno

Starknet client implementation.
https://juno.nethermind.io
Apache License 2.0
399 stars 171 forks source link

Extract Pebble's native metrics #1243

Open joshklop opened 1 year ago

joshklop commented 1 year ago

https://github.com/cockroachdb/pebble/blob/master/metrics.go

Exca-DK commented 1 year ago

Do you have some in mind that should be focused on?

joshklop commented 1 year ago

Ideally we can ingest them all into prometheus. A first PR that sets up the scaffolding could start with something simple like metrics.*Metrics.DiskSpaceUsage(). A few follow-ups could add everything on the *Metrics struct and FsyncLatencyBuckets.

May be useful: https://github.com/cockroachdb/pebble/blob/be1586403c9bdf0c6a97074f2762758a66f68806/db.go#L1905