Would like to monitor the Resource Quota with UMA Agent. Unable to find any information in the online guide about this topic.
Resource quotas are set on namespace and currently UMA uses these limits for namespace level for cpu and memory metrics and related calculations.
For example:
When below resource quota is applied on a namespace, the cpu limit is shown as 8 (based on limits.cpu value in resource quota). Similarly for memory limit.
e.g.
apiVersion: v1
kind: ResourceQuota
metadata:
name: namespace-quota
namespace: redis
spec:
hard:
pods: "10"
requests.cpu: "4"
requests.memory: 8Gi
limits.cpu: "8"
UMA Agent metric path will be:
"SuperDomain|<cluster_name>|ClusterDeployment|Infrastructure Agent|Kubernetes|Namespaces|<namesapce>:CPU Limit (mCore)"
In context of the example, UMA will calculate cpu % and memory % based on the limit set in resource quota while usage will be aggregated usage value of pods running in the namespace.