Repository navigation
Show %CPU/R, %CPU/L, %MEM/R, %MEM/L for list of pods #829
Replies: 4 comments
|
you can do sth like this in the config directly [views."v1/pods"]
columns = [
{ name = "%CPU/R", metric = "cpu-request-utilization" },
{ name = "%MEM/R", metric = "memory-request-utilization" },
]but cant update the order of the field, maybe if having feature to configure the precednce of the field would help and I would prefer to have smaller set of default field, as long as it can be customize |
|
Thanks for the idea @jhalterman, and thanks @polo871209 for jumping in! Good news: this should already be possible with view config. The pods view has utilization metrics for both requests and limits, and with [views."v1/pods"]
replace = true
columns = [
{ name = "NAME", builtin = "NAME" },
{ name = "READY", builtin = "READY" },
{ name = "STATUS", builtin = "STATUS" },
{ name = "RESTARTS", builtin = "RESTARTS" },
{ name = "CPU", metric = "cpu" },
{ name = "%CPU/R", metric = "cpu-request-utilization" },
{ name = "%CPU/L", metric = "cpu-limit-utilization" },
{ name = "MEM", metric = "memory" },
{ name = "%MEM/R", metric = "memory-request-utilization" },
{ name = "%MEM/L", metric = "memory-limit-utilization" },
{ name = "AGE", builtin = "AGE" },
]@polo871209 on ordering: with The columns are sortable and filterable too, e.g. Docs: https://github.com/nklmilojevic/sofka/blob/main/docs/views.md#built-in-and-metric-columns Could you give it a try and let me know if it covers what you need? If something's missing or feels awkward, happy to keep improving it. |
|
Closing this one since the view config above covers all four columns, with your own order via If something's still missing or awkward once you try it, reopen and let me know :) |
|
@nklmilojevic This works great. Thanks for the suggestion. |
Uh oh!
There was an error while loading. Please reload this page.
Memory and CPU usage in Sofka are nice, but it's the % relative to the reserve and limit that I really need to know, across an entire list of pods, without having to look at each pod individually.
All reactions