Skip to content

Commit

Permalink
[MAIN-1923] Bugfix - Kube system summary (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-Robusta authored Aug 1, 2024
1 parent 560d423 commit 4671a17
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ async def get_cluster_summary(self) -> Dict[str, Any]:
sum(max by (instance) (machine_cpu_cores{{ {cluster_label} }}))
"""
kube_system_requests_mem = f"""
sum(max(kube_pod_container_resource_requests{{ namespace='kube-system', resource='memory' {cluster_label} }}) by (job) )
sum(max(kube_pod_container_resource_requests{{ namespace='kube-system', resource='memory' {cluster_label} }}) by (job, pod, container) )
"""
kube_system_requests_cpu = f"""
sum(max(kube_pod_container_resource_requests{{ namespace='kube-system', resource='cpu' {cluster_label} }}) by (job) )
sum(max(kube_pod_container_resource_requests{{ namespace='kube-system', resource='cpu' {cluster_label} }}) by (job, pod, container) )
"""
try:
cluster_memory_result = await self.query_and_validate(memory_query)
Expand Down

0 comments on commit 4671a17

Please sign in to comment.