-
Notifications
You must be signed in to change notification settings - Fork 374
Get VM container real metric #822
Comments
Does |
This is really gooood ! |
Glad that helps you ^ ^ @Ace-Tang |
thanks for @jshachm , now seems still can't get real metric through containerd. I have paste the reason on containerd issue containerd/containerd#2722, could you offer more help. |
The v2 runtime that the kata should would implement has a custom proto.Any for metrics types. It is up to the shim to provide metrics how they see fit. It shouldn't be an issue. https://github.com/containerd/containerd/blob/master/runtime/v2/task/shim.proto#L33 |
Thanks for all yours help, I think #572 can satisfy my need, I will do more test on this. |
double comment since github is down in the morning. |
…nch-bump # Kata Containers 1.12.0-alpha1
Description of problem
I am working on some container metric things, found that docker/pouch can not get right kata container metric informations. because if we use runc container, docker can get cpu/memory/pid/blkio infomation from cgroup and proc/stats on the host, but for kata, since it is a vm, we can not get information from host, if we want to get right things, we should get the file inside vm.
Here I think about a simple and crude way to get this information. Get file through exec command, and resolve the data in the pouch side, filling container metric with this thing.
I am not get better idea for how to get metric in kata container, so I want to ask for some help here, thanks.
Expected result
(replace this text with an explanation of what you thought would happen)
Actual result
(replace this text with details of what actually happened)
(replace this text with the output of the
kata-collect-data.sh
script, afteryou have reviewed its content to ensure it does not contain any private
information).
The text was updated successfully, but these errors were encountered: