Skip to content

CNV-61371 - Added AAQ metrics #96517

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

Open
wants to merge 1 commit into
base: enterprise-4.20
Choose a base branch
from

Conversation

Vaishali-gif-rh
Copy link
Contributor

Version(s):
4.20

Issue:
https://issues.redhat.com/browse/CNV-61371

Link to docs preview:

QE review:

  • QE has approved this change.

Additional information:

@openshift-ci openshift-ci bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 23, 2025
Copy link

openshift-ci bot commented Jul 23, 2025

@Vaishali-gif-rh: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

The following metrics are exposed by the Application Aware Quota (AAQ) controller for monitoring resource quotas:

.`kube_application_aware_resourcequota`::
Returns the current usage of application-aware resource quotas. Type: Gauge.
Copy link

Choose a reason for hiding this comment

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

it returns both hard limit and current usage of resources
I guess it could be like ""Returns the hard limit and current usage of application-aware resource quotas..."

@sjhala-ccs sjhala-ccs added CNV Label for all CNV PRs branch/enterprise-4.20 labels Jul 23, 2025
@sjhala-ccs sjhala-ccs added this to the Planned for 4.20 GA milestone Jul 23, 2025
Copy link
Contributor

@sjhala-ccs sjhala-ccs left a comment

Choose a reason for hiding this comment

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

Thanks, Vaishali! Some syntax corrections and wording suggestions. I also noticed that this feature branch is based off enterprise-4.20. You need to base it off main.

@@ -141,3 +141,14 @@ topk(3, sum by (name, namespace) (rate(kubevirt_vmi_memory_swap_in_traffic_bytes
====
Memory swapping indicates that the virtual machine is under memory pressure. Increasing the memory allocation of the virtual machine can mitigate this issue.
====

[id=virt-promql-AAQ-metrics_context]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
[id=virt-promql-AAQ-metrics_context]
[id="virt-promql-AAQ-metrics_{context}"]


The following metrics are exposed by the Application Aware Quota (AAQ) controller for monitoring resource quotas:

.`kube_application_aware_resourcequota`::
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.`kube_application_aware_resourcequota`::
`kube_application_aware_resourcequota`::

.`kube_application_aware_resourcequota`::
Returns the current usage of application-aware resource quotas. Type: Gauge.

.`kube_application_aware_resourcequota_creation_timestamp`::
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.`kube_application_aware_resourcequota_creation_timestamp`::
`kube_application_aware_resourcequota_creation_timestamp`::

@@ -141,3 +141,14 @@ topk(3, sum by (name, namespace) (rate(kubevirt_vmi_memory_swap_in_traffic_bytes
====
Memory swapping indicates that the virtual machine is under memory pressure. Increasing the memory allocation of the virtual machine can mitigate this issue.
====

[id=virt-promql-AAQ-metrics_context]
== Monitoring AAQ operator metrics
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
== Monitoring AAQ operator metrics
== AAQ Operator metrics

[id=virt-promql-AAQ-metrics_context]
== Monitoring AAQ operator metrics

The following metrics are exposed by the Application Aware Quota (AAQ) controller for monitoring resource quotas:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
The following metrics are exposed by the Application Aware Quota (AAQ) controller for monitoring resource quotas:
The following metrics are exposed by the Application-Aware Quota (AAQ) Operator controller for monitoring resource quotas:

Returns the current usage of application-aware resource quotas. Type: Gauge.

.`kube_application_aware_resourcequota_creation_timestamp`::
Returns the Unix timestamp of the application-aware resource quota creation. Type: Gauge.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the timestamp of when an AAQ Operator resource (ApplicationAwareResourceQuota or ApplicationAwareClusterResourceQuota is created? If so, my suggestion would be reword it to something like this:

Suggested change
Returns the Unix timestamp of the application-aware resource quota creation. Type: Gauge.
Returns the time, in UNIX timestamp format, when the AAQ Operator resource is created. Type: Gauge.

The following metrics are exposed by the Application Aware Quota (AAQ) controller for monitoring resource quotas:

.`kube_application_aware_resourcequota`::
Returns the current usage of application-aware resource quotas. Type: Gauge.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bit vague. I would suggest changing it to something like this. Please get it reviewed by an SME to ensure technical accuracy.

Suggested change
Returns the current usage of application-aware resource quotas. Type: Gauge.
Returns the current quota usage and the CPU and memory limits enforced by the AAQ Operator resources. Type: Gauge.

@sjhala-ccs sjhala-ccs added the peer-review-done Signifies that the peer review team has reviewed this PR label Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch/enterprise-4.20 CNV Label for all CNV PRs peer-review-done Signifies that the peer review team has reviewed this PR size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants