Skip to content

Commit

Permalink
remove redundant max (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-Robusta authored Jul 7, 2023
1 parent 9cdc002 commit e3ddd92
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ def get_query(self, object: K8sObjectData, resolution: Optional[str]) -> str:
cluster_label = self.get_prometheus_cluster_label()
resolution_formatted = f"[{resolution}]" if resolution else ""
return (
f"max(max_over_time(container_memory_working_set_bytes{{"
f"max_over_time(container_memory_working_set_bytes{{"
f'namespace="{object.namespace}", '
f'pod=~"{pods_selector}", '
f'container="{object.container}"'
f"{cluster_label}}}"
f"{resolution_formatted}"
f")) by (container, pod, job, id)"
f")"
)

def get_query_type(self) -> QueryType:
Expand Down

0 comments on commit e3ddd92

Please sign in to comment.