Skip to main content

astroctl infra kubernetes metrics allocation

Show every application on the cluster ranked by resource usage

astroctl infra kubernetes metrics allocation [cluster-name] [flags]

Examples


astroctl infra k8s metrics allocation -c my-cluster --window 1h
astroctl infra k8s metrics allocation my-cluster --sort-by memory --search checkout

Options

-h, --help help for allocation
--limit int page size from 1 through 200 (default 50)
--offset int page offset
--search string case-insensitive application name search
--sort-by string sort by cpu, memory, or name (default "cpu")
--sort-order string sort direction: asc or desc (default "desc")
--window string window duration (for example 15m, 1h, 24h); minutes-scale, not truncated to whole hours (default "1h")

Options inherited from parent commands

-c, --cluster-name string cluster name
-o, --output string Output format (json|yaml) (default "yaml")

SEE ALSO