Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(goleveldb): add Prometheus metrics #94

Closed
wants to merge 11 commits into from

Conversation

melekes
Copy link
Contributor

@melekes melekes commented Nov 30, 2023

To use in CometBFT, replace cometbft-db with "github.com/cometbft/cometbft-db v0.8.1-0.20231130153829-e15cd32378cf" in your go.mod file.

Example list of metrics for blockstore db:

cometbft_db_blockstore_BlockCacheSize - goleveldb block cache size
cometbft_db_blockstore_IORead - N of bytes read
cometbft_db_blockstore_IOWrite - N of bytes written
cometbft_db_blockstore_TotalLevelDurations - Compaction duration
cometbft_db_blockstore_TotalLevelRead - N of MB read
cometbft_db_blockstore_TotalLevelSizes - N of MB compacted
cometbft_db_blockstore_TotalLevelTablesCounts - N of tables compacted
cometbft_db_blockstore_TotalLevelWrite - N of MB written
cometbft_db_blockstore_OpenedTablesCount - N of open goleveldb tables
cometbft_db_blockstore_batch_duration_ms - Batch#Write(false) duration in ms
cometbft_db_blockstore_batch_sync_duration_ms - Batch#Write(true) duration in ms
cometbft_db_blockstore_delete_duration_ms - Delete() duration in ms
cometbft_db_blockstore_delete_sync_duration_ms - DeleteSync() duration in ms
cometbft_db_blockstore_get_duration_ms - Get() duration in ms
cometbft_db_blockstore_set_duration_ms - Set() duration in ms
cometbft_db_blockstore_set_sync_duration_ms - SetSync() duration in ms

@melekes melekes self-assigned this Nov 30, 2023
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Dec 18, 2023
@melekes melekes closed this Dec 18, 2023
@melekes melekes reopened this Dec 25, 2023
@melekes melekes changed the title [DO NOT MERGE] goleveldb w/ Prometheus metrics feat(goleveldb): add Prometheus metrics Dec 25, 2023
@melekes melekes added wip Work in progress and removed Stale labels Dec 25, 2023
@melekes melekes closed this Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant