Skip to content

feat: add prebuilds reconciliation duration metric (#20535)#20581

Merged
ssncferreira merged 1 commit into
release/2.28from
ssncferreira/2.28-backport-20535
Oct 30, 2025
Merged

feat: add prebuilds reconciliation duration metric (#20535)#20581
ssncferreira merged 1 commit into
release/2.28from
ssncferreira/2.28-backport-20535

Conversation

@ssncferreira
Copy link
Copy Markdown
Contributor

Related to PR: #20535

(cherry picked from commit aad1b40)

## Description

Adds `coderd_prebuilds_reconciliation_duration_seconds` histogram metric
to track the duration of each prebuilds reconciliation cycle.

This metric helps operators monitor reconciliation performance and
identify potential bottlenecks.

## Changes

- Added `ReconcileStats` struct to capture reconciliation cycle
statistics
- Updated `ReconcileAll()` to return stats including elapsed time
- Added histogram metric
`coderd_prebuilds_reconciliation_duration_seconds`

(cherry picked from commit aad1b40)
@ssncferreira ssncferreira added the cherry-pick/v2.28 Needs to be cherry-picked to the 2.28 release branch label Oct 30, 2025
@ssncferreira ssncferreira merged commit 6424093 into release/2.28 Oct 30, 2025
29 checks passed
@ssncferreira ssncferreira deleted the ssncferreira/2.28-backport-20535 branch October 30, 2025 12:16
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cherry-pick/v2.28 Needs to be cherry-picked to the 2.28 release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants