diff --git a/src/plugin/manager/cost_manager.py b/src/plugin/manager/cost_manager.py index 3810a8d..16567bf 100644 --- a/src/plugin/manager/cost_manager.py +++ b/src/plugin/manager/cost_manager.py @@ -220,19 +220,19 @@ def _make_additional_info(result: dict, service_account_id: str) -> dict: "X-Scope-OrgID": service_account_id, } - if cluster := result["metric"].get("cluster"): + if cluster := result["metric"].get("cluster", "__idle__"): additional_info["Cluster"] = cluster - if node := result["metric"].get("node"): + if node := result["metric"].get("node", "__idle__"): additional_info["Node"] = node - if namespace := result["metric"].get("namespace"): + if namespace := result["metric"].get("namespace", "__idle__"): additional_info["Namespace"] = namespace - if pod := result["metric"].get("pod"): + if pod := result["metric"].get("pod", "__idle__"): additional_info["Pod"] = pod - if container := result["metric"].get("container"): + if container := result["metric"].get("container", "__idle__"): additional_info["Container"] = container if pv := result["metric"].get("persistentvolume"):