Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 630
perf(relayer): submission strategy fix logs, use blocktime for submission strategy and log metrics.#1663
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
Merged
jonastheis
merged 6 commits into
develop
from
submission-strategy-fix-logs-use-blocktimeMay 22, 2025
Uh oh!
There was an error while loading. Please reload this page.
Merged
perf(relayer): submission strategy fix logs, use blocktime for submission strategy and log metrics. #1663
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b396496
Fix logs and use blocktime instead of batchtime
ranchalp 299759b
Add metrics for rollupL2Relayer
ranchalp ba5e26d
chore: auto version bump [bot]
ranchalp 8c8349b
Log batch index and backlog count
ranchalp fe58865
Update rollup/internal/controller/relayer/l2_relayer.go
ranchalp d945318
Init new metrics
ranchalp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -26,6 +26,11 @@ type l2RelayerMetrics struct { | ||
| rollupL2RelayerCommitBlockHeight prometheus.Gauge | ||
| rollupL2RelayerCommitThroughput prometheus.Counter | ||
| rollupL2RelayerCurrentBlobPrice prometheus.Gauge | ||
| rollupL2RelayerTargetBlobPrice prometheus.Gauge | ||
| rollupL2RelayerCommitLatency prometheus.Gauge | ||
| rollupL2RelayerBacklogCounts prometheus.Gauge | ||
ranchalp marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. ranchalp marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| } | ||
| var ( | ||
| @@ -104,6 +109,22 @@ func initL2RelayerMetrics(reg prometheus.Registerer) *l2RelayerMetrics { | ||
| Name: "rollup_l2_relayer_commit_throughput", | ||
| Help: "The cumulative gas used in blocks committed by the L2 relayer", | ||
| }), | ||
| rollupL2RelayerTargetBlobPrice: promauto.With(reg).NewGauge(prometheus.GaugeOpts{ | ||
| Name: "rollup_l2_relayer_target_blob_price", | ||
| Help: "The target blob price for the L2 relayer's submission strategy", | ||
| }), | ||
| rollupL2RelayerCurrentBlobPrice: promauto.With(reg).NewGauge(prometheus.GaugeOpts{ | ||
| Name: "rollup_l2_relayer_current_blob_price", | ||
| Help: "The current blob price", | ||
| }), | ||
| rollupL2RelayerCommitLatency: promauto.With(reg).NewGauge(prometheus.GaugeOpts{ | ||
| Name: "rollup_l2_relayer_commit_latency", | ||
| Help: "The latency of the commit measured from oldest blocktime", | ||
| }), | ||
| rollupL2RelayerBacklogCounts: promauto.With(reg).NewGauge(prometheus.GaugeOpts{ | ||
| Name: "rollup_l2_relayer_backlog_counts", | ||
| Help: "The number of pending batches in the backlog", | ||
| }), | ||
| } | ||
| }) | ||
| return l2RelayerMetric | ||
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.