Skip to content

feat(w-m): Provider workerGroup label for some metric#8248

Merged
lotas merged 1 commit intomainfrom
feat/8247-w-m-metrics-with-location
Feb 5, 2026
Merged

feat(w-m): Provider workerGroup label for some metric#8248
lotas merged 1 commit intomainfrom
feat/8247-w-m-metrics-with-location

Conversation

@lotas
Copy link
Contributor

@lotas lotas commented Feb 5, 2026

For worker deployers it might be useful to see breakdown by region/location of the workers to track costs more effectively.

Fixes #8247

For worker deployers it might be useful to see breakdown by
region/location of the workers to track costs more effectively.
@lotas lotas requested a review from a team as a code owner February 5, 2026 13:17
@lotas lotas requested review from matt-boris and petemoore and removed request for a team February 5, 2026 13:17
Copy link
Contributor

@matt-boris matt-boris left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

const stoppingCapacity = isStopping ? worker.capacity : 0;
const requestedCapacity = isRequested ? worker.capacity : 0;
const existingCapacity = isStopping || isQuarantined ? 0 : worker.capacity;
const quarantineCapacity = isQuarantined ? worker.capacity : 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like you fixed a bug here in this refactoring/clean up!

Previously, existingCapacity would be set to 0 then that value was added to quarantineCapacity, not properly counting the quarantineCapacity :) Nice!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

indeed! :)

@lotas lotas merged commit 8d7db92 into main Feb 5, 2026
73 checks passed
@lotas lotas deleted the feat/8247-w-m-metrics-with-location branch February 5, 2026 14:44
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.

Add location/region/zone labels to exposed worker-manager metrics

2 participants