Adding collector providing the total of vCPU of all workers#165
Merged
MilanPospisil merged 74 commits intoansible:develfrom Aug 15, 2025
Merged
Adding collector providing the total of vCPU of all workers#165MilanPospisil merged 74 commits intoansible:develfrom
MilanPospisil merged 74 commits intoansible:develfrom
Conversation
Ladas
reviewed
Jul 11, 2025
… METRIC_UTILITY_VCPU_COUNT_OVERWRITE
Signed-off-by: itdove <dvernier@redhat.com>
robinbobbitt
requested changes
Jul 22, 2025
robinbobbitt
reviewed
Aug 6, 2025
robinbobbitt
reviewed
Aug 6, 2025
robinbobbitt
reviewed
Aug 6, 2025
robinbobbitt
reviewed
Aug 6, 2025
Signed-off-by: itdove <dvernier@redhat.com>
|
himdel
added a commit
to himdel/metrics-utility
that referenced
this pull request
Aug 7, 2025
robinbobbitt
approved these changes
Aug 13, 2025
MilanPospisil
approved these changes
Aug 14, 2025
MilanPospisil
pushed a commit
to MilanPospisil/metrics-utility
that referenced
this pull request
Jan 6, 2026
) * Add cls to json type * Remove the classes to simplify code * Add environment variable METRIC_UTILITY_ANSIBLE_SAAS_CLUSTER_NAME and METRIC_UTILITY_VCPU_COUNT_OVERWRITE * ruff fix * fix init timestamp * Add get_mandatory_collectors * Reformat collectors.py * Use METRIC_UTILITY_VCPU_COUNT_ENABLED instead of METRIC_UTILITY_VCPU_COUNT_OVERWRITE * Test * Add clean METRICS_UTILITY_MANDATORY_COLLECTORS env var in test * Add pytest * fix ruff * Reformat * Log error instead of raising exception * Fix tests ruff * Raise exception on error * Reformat * ruff * Add MANDATORY COLLECTORS validity * Fix pytest * Fix mock config * Use metrics_utility.exceptions * Rename METRICS_UTILITY_VCPU_COUNT_ENABLED to METRICS_UTILITY_USAGE_BASED_BILLING_ENABLED * Update pytest * Run ruff * Rename METRICS_UTILITY_ANSIBLE_SAAS_CLUSTER_NAME to METRICS_UTILITY_CLUSTER_NAME * Use logging * comments * Create a new logger * Format * Fix precheck * with quote in precheck * Fix test * Use METRICS_UTILITY_DISABLE_JOB_HOST_SUMMARY_COLLECTOR * reformat * Remove METRICS_UTILITY_MANDATORY_COLLECTORS for validation * Add doc in test_Containerfile * add test for METRICS_UTILITY_DISABLE_JOB_HOST_SUMMARY_COLLECTOR * Remove unused local varaible * Add test if failed to get a kube client * Fix imports * Remove var VALID_MANDATORY_COLLECTORS * Rename VALID_OPTIONAL_COLLECTORS to its original name * ruff format * safe_tarfile_member_check * format * Fix sonar * fix sonarQube * Add METRICS_UTILITY_COLLECTOR_LOCK_SUFFIX and METRICS_UTILITY_DISABLE_SAVE_LAST_GATHERED_ENTRIES * REmove comments * Deleting test_total_workers_vcpu_standalone.py... not needed * Add limit_slicing * Parenthesis * Add macos instruction * sort import * Delete file at the end of each test * Try again * Comment assert * revert * comment tests * Print * Catch extra exception * Fix exception * Remove exception * format * fix assert ruff --------- Signed-off-by: itdove <dvernier@redhat.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

AAP-48831
Description
Testing
Prerequisites
Steps to Test
Expected Results
Required Actions
Self-Review Checklist
Code Quality
- If updates are required in the handbook, create a separate PR for the handbook repo.
Notes for Reviewers
Add any additional context or instructions for reviewers here - for example screenshots if needed.