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

Add checkpoint size metrics #5395

Merged
merged 7 commits into from
Feb 20, 2024
Merged

Conversation

zhangchiqing
Copy link
Member

Close #5392

@codecov-commenter
Copy link

codecov-commenter commented Feb 14, 2024

Codecov Report

Attention: 21 lines in your changes are missing coverage. Please review.

Comparison is base (ceec128) 55.97% compared to head (88adf05) 55.91%.
Report is 14 commits behind head on master.

Files Patch % Lines
module/metrics/execution.go 0.00% 10 Missing ⚠️
ledger/complete/compactor.go 66.66% 2 Missing and 1 partial ⚠️
ledger/complete/wal/checkpoint_v6_reader.go 85.00% 2 Missing and 1 partial ⚠️
ledger/complete/wal/checkpointer.go 57.14% 2 Missing and 1 partial ⚠️
cmd/execution_builder.go 0.00% 1 Missing ⚠️
module/metrics/noop.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5395      +/-   ##
==========================================
- Coverage   55.97%   55.91%   -0.06%     
==========================================
  Files        1023     1016       -7     
  Lines       98930    98246     -684     
==========================================
- Hits        55380    54939     -441     
+ Misses      39349    39136     -213     
+ Partials     4201     4171      -30     
Flag Coverage Δ
unittests 55.91% <59.61%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhangchiqing zhangchiqing marked this pull request as ready for review February 15, 2024 00:38
@zhangchiqing zhangchiqing requested review from janezpodhostnik, sideninja and peterargue and removed request for ramtinms and AlexHentschel February 15, 2024 00:38
@@ -22,6 +22,7 @@ type ExecutionCollector struct {
lastFinalizedExecutedBlockHeightGauge prometheus.Gauge
stateStorageDiskTotal prometheus.Gauge
storageStateCommitment prometheus.Gauge
checkpointSize prometheus.Gauge
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need an initialisation?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I think it will panic if it's not initialized

@@ -650,6 +651,7 @@ func NewExecutionCollector(tracer module.Tracer) *ExecutionCollector {
Help: "the execution state size on disk in bytes",
}),

// TODO: remove
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this todo for another PR? If so, maybe add more context.

module/metrics.go Outdated Show resolved Hide resolved
ledger/complete/compactor.go Outdated Show resolved Hide resolved
ledger/complete/wal/checkpoint_v6_reader.go Outdated Show resolved Hide resolved
ledger/complete/wal/checkpointer.go Outdated Show resolved Hide resolved
@@ -22,6 +22,7 @@ type ExecutionCollector struct {
lastFinalizedExecutedBlockHeightGauge prometheus.Gauge
stateStorageDiskTotal prometheus.Gauge
storageStateCommitment prometheus.Gauge
checkpointSize prometheus.Gauge
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I think it will panic if it's not initialized

zhangchiqing and others added 4 commits February 15, 2024 13:32
Co-authored-by: Peter Argue <89119817+peterargue@users.noreply.github.com>
Co-authored-by: Janez Podhostnik <67895329+janezpodhostnik@users.noreply.github.com>
@zhangchiqing zhangchiqing added this pull request to the merge queue Feb 20, 2024
Merged via the queue into master with commit a260653 Feb 20, 2024
50 of 51 checks passed
@zhangchiqing zhangchiqing deleted the leo/add-checkpoint-size-metrics branch February 20, 2024 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Execution] Adding metrics for checkpoint size
4 participants