get_label_costs
Aggregate Kubernetes costs by any pod label for chargeback. See spend per team, environment, or app, with untagged grouping and tagging coverage warning.
Instructions
Aggregate Kubernetes costs by any pod label across all namespaces. Great for chargeback: see spend by team, environment, app, or any label.
Workloads without the label are grouped under 'untagged'. If tagging coverage is low, the response includes a warning with the tagged %.
Common label_key values: team, env, environment, app, component, tier, app.kubernetes.io/name, app.kubernetes.io/part-of
Examples: - "Show me Kubernetes costs by team" - "Which team is spending the most on Kubernetes?" - "Break down K8s costs by environment" - "How much is the payments team spending in the cluster?" - "Show K8s cost by app label" - "What percentage of our cluster is untagged?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | ||
| label_key | No | team |