Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
#76 get pod metrics for all namespaces (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs authored Apr 15, 2019
1 parent 7687b30 commit 85a06c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kube_resource_report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def get_node_usage(cluster, nodes: dict):

def get_pod_usage(cluster, pods: dict):
try:
for pod_metrics in PodMetrics.objects(cluster.client):
for pod_metrics in PodMetrics.objects(cluster.client, namespace=pykube.all):
key = (pod_metrics.namespace, pod_metrics.name)
pod = pods.get(key)
if pod:
Expand Down

0 comments on commit 85a06c3

Please sign in to comment.