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(storage): static files metrics #6736

Merged
merged 5 commits into from
Feb 22, 2024

Conversation

shekhirin
Copy link
Collaborator

@shekhirin shekhirin commented Feb 22, 2024

Similar to database metrics, we now record the following metrics for the snapshot provider:

pub(crate) enum SnapshotProviderOperation {
InitCursor,
OpenWriter,
Append,
Prune,
IncrementBlock,
CommitWriter,
}

reth_snapshots_jar_provider_calls_total{segment="headers",operation="append"} 64
reth_snapshots_jar_provider_calls_total{segment="headers",operation="commit-writer"} 2
reth_snapshots_jar_provider_calls_total{segment="headers",operation="increment-block"} 64
reth_snapshots_jar_provider_calls_total{segment="headers",operation="init-cursor"} 6400
reth_snapshots_jar_provider_calls_total{segment="headers",operation="open-writer"} 1
reth_snapshots_jar_provider_calls_total{segment="receipts",operation="append"} 10566
reth_snapshots_jar_provider_calls_total{segment="receipts",operation="commit-writer"} 2
reth_snapshots_jar_provider_calls_total{segment="receipts",operation="increment-block"} 64
reth_snapshots_jar_provider_calls_total{segment="receipts",operation="init-cursor"} 6
reth_snapshots_jar_provider_calls_total{segment="receipts",operation="open-writer"} 1
reth_snapshots_jar_provider_calls_total{segment="transactions",operation="append"} 10566
reth_snapshots_jar_provider_calls_total{segment="transactions",operation="commit-writer"} 2
reth_snapshots_jar_provider_calls_total{segment="transactions",operation="increment-block"} 64
reth_snapshots_jar_provider_calls_total{segment="transactions",operation="init-cursor"} 3263
reth_snapshots_jar_provider_calls_total{segment="transactions",operation="open-writer"} 1

@shekhirin shekhirin added C-enhancement New feature or request A-observability Related to tracing, metrics, logs and other observability tools A-static-files Related to static files labels Feb 22, 2024
@shekhirin shekhirin marked this pull request as ready for review February 22, 2024 15:29
@onbjerg
Copy link
Member

onbjerg commented Feb 22, 2024

test failure unrelated, it's a timeout -.-

@shekhirin shekhirin merged commit 3d8c2b0 into feat/static-files Feb 22, 2024
23 of 25 checks passed
@shekhirin shekhirin deleted the alexey/static-files-metrics branch February 22, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-observability Related to tracing, metrics, logs and other observability tools A-static-files Related to static files C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants