juno icon indicating copy to clipboard operation
juno copied to clipboard

Extract Pebble's native metrics

Open joshklop opened this issue 2 years ago • 2 comments

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

joshklop avatar Sep 15 '23 17:09 joshklop

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

Exca-DK avatar Sep 18 '23 06:09 Exca-DK

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

joshklop avatar Sep 18 '23 12:09 joshklop