Skip to content

Add support for metrics for time to lock jobs and locked count#64

Merged
brandur merged 1 commit into
masterfrom
brandur-get-available-metrics
Jul 24, 2026
Merged

Add support for metrics for time to lock jobs and locked count#64
brandur merged 1 commit into
masterfrom
brandur-get-available-metrics

Conversation

@brandur

@brandur brandur commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Here, build on the proposal in [1] to add a metric hook to River, and
start emitting metrics for the time to lock jobs and the number of jobs
locked. Especially the first metric is generally very useful for looking
for queue degradation due to dead tuples.

[1] riverqueue/river#1285

@brandur
brandur force-pushed the brandur-get-available-metrics branch from 248455a to 629ec4c Compare June 12, 2026 13:44
@brandur
brandur force-pushed the brandur-get-available-metrics branch from 629ec4c to 5bedba1 Compare July 24, 2026 13:20
Here, build on the proposal in [1] to add a metric hook to River, and
start emitting metrics for the time to lock jobs and the number of jobs
locked. Especially the first metric is generally very useful for looking
for queue degradation due to dead tuples.

[1] riverqueue/river#1285
@brandur
brandur force-pushed the brandur-get-available-metrics branch from 5bedba1 to 6d96738 Compare July 24, 2026 13:23
@brandur
brandur requested a review from bgentry July 24, 2026 13:23
@brandur

brandur commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

@bgentry This should be good to go now. The last step was needing an updated River version, which just shipped.

@brandur
brandur merged commit c27f2e5 into master Jul 24, 2026
5 checks passed
@brandur
brandur deleted the brandur-get-available-metrics branch July 24, 2026 16:01
brandur added a commit that referenced this pull request Jul 24, 2026
A really small one to update River in all subpackages to v0.41 like we
started using in #64. Add targets `update-river`/`update-river-to-branch`
for make copied in from Pro to make this easy to do in the future.
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.

2 participants