astroctl infra kubernetes cost allocation
Show usage and cost grouped by namespace, application, or node group
astroctl infra kubernetes cost allocation [cluster-name] [flags]
Examples
astroctl infra k8s cost allocation -c my-cluster --group-by namespace --window 24h
astroctl infra k8s cost allocation my-cluster --group-by application --window 7d
astroctl infra k8s cost allocation my-cluster --group-by application --search checkout --limit 100
Options
--application string application name (requires --group-by application)
--currency string ISO 4217 currency for cost sorting; mixed currencies otherwise sort by name
--group-by string allocation dimension: namespace, application, or node-group (default "namespace")
-h, --help help for allocation
--limit int page size from 1 through 200 (default 50)
--page-token string opaque nextPageToken from a previous result
--search string case-insensitive allocation name search
--sort-by string sort by cost, name, cpu, ram, storage, gpu, or efficiency (default "cost")
--sort-order string sort direction: asc or desc (default "desc")
--window string closed-hour window (for example 24h, 7d, 30d) (default "24h")
Options inherited from parent commands
-c, --cluster-name string cluster name
-o, --output string Output format (json|yaml) (default "yaml")
SEE ALSO
- astroctl infra kubernetes cost - Show measured Kubernetes resource usage and cost