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

(POOLER-176) Add Operation Label to User Metric #455

Merged
merged 1 commit into from
Aug 17, 2021
Merged

Conversation

yachub
Copy link

@yachub yachub commented Aug 11, 2021

This adds an "operation" label to the user metrics and moves incrementing from the manager to api, so that the user metrics show when resources are allocated, as well as destroyed. Previously, user metrics were only updated upon destroying a resource.

I think its better suited to increment the metric as part of the api instead of the pool_manger, because it's expected to do so when a user successfully checks out or deletes a VM, but can be problematic when doing so in the provider since it can clone VMs before actually being checked out by a user.

@yachub yachub requested a review from a team as a code owner August 11, 2021 16:22
lib/vmpooler/api/v1.rb Outdated Show resolved Hide resolved
lib/vmpooler/metrics/promstats.rb Outdated Show resolved Hide resolved
lib/vmpooler/metrics/promstats.rb Outdated Show resolved Hide resolved
This adds an "operation" label to the user metrics and moves incrementing from the manager to api, so that the user metrics show when resources are allocated, as well as destroyed. Previously, user metrics were only updated upon destroying a resource.

I think its better suited to increment the metric as part of the api instead of the pool_manger, because it's expected to do so when a user successfully checks out or deletes a VM, but can be problematic when doing so in the provider since it can clone VMs before actually being checked out by a user.
@yachub yachub merged commit 674e2b5 into master Aug 17, 2021
@yachub yachub deleted the fix-user-metrics branch August 17, 2021 19:56
yachub added a commit that referenced this pull request Aug 25, 2021
Fix dependency function component_to_test for jenkins metrics that was not copied from pool_manager to api/v1 in #455
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