aserowy / docker2mqtt

Monitor your docker environment over mqtt the easy way.
MIT License
5 stars 2 forks source link

enable memory stats for v2 cgroups #26

Open aserowy opened 3 years ago

aserowy commented 3 years ago

Is your feature request related to a problem? Please describe.

After enabling v2 cgroups for docker, the current calculation for mem usage is not applicable in this context.

Describe the solution you'd like

Enable mem usage streams for v2 cgroups as well.

Additional context

aserowy commented 3 years ago

current calculation is based on https://docs.docker.com/engine/api/v1.41/#operation/ContainerStats. Currently no v2 cgroups calculation is shown...