-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metric: expose pebble fsync latency with a callback
The fsync latency was computed using an HDR histogram however this histogram generates too many buckets of various widths. In order to allow clients to store the fsync latency in their preferred format, a callback was introduced. This callback is defined on the `pebble.Options` which enables clients to provide a callback function which will be triggered each time pebble produces the fsync latency metrics. Additionally the `record.NewLogWriter` method was updated to take in a configuration struct which configures the `LogWriter` with the specified callbacks.
- Loading branch information
1 parent
c53a4cc
commit e88f67e
Showing
7 changed files
with
80 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.