docker_exporter icon indicating copy to clipboard operation
docker_exporter copied to clipboard

Modify how memory usage is calculated

Open cobrul opened this issue 4 years ago • 2 comments
trafficstars

Currently, the exporter is showing different values compared to docker stats if the docker daemon runs on linux. In order to prevent misinterpretations, memory usage should be calcuclated like the docker stats command line. See https://github.com/moby/moby/blob/eb131c5383db8cac633919f82abad86c99bffbe5/cli/command/container/stats_helpers.go#L175

cobrul avatar Mar 24 '21 07:03 cobrul

Ran into this issue as well. Very interested if this can be merged since, apart from the memory info not being very useful to us, this is a great exporter!

aleksa2808 avatar May 28 '21 16:05 aleksa2808

I noticed that the memory usage reported by the exporter including your PR (thanks btw) is different to the usage reported by docker stats. It seems that a multiplication by 10 delivers the same value. Can you confirm that?

RalfHerzog avatar Jun 18 '21 10:06 RalfHerzog