munin-monitoring / contrib

Contributed stuff for munin (plugins, tools, etc...)
http://munin-monitoring.org
1.05k stars 678 forks source link

docker_memory: add total memory used #1365

Closed ap-wtioit closed 1 year ago

ap-wtioit commented 1 year ago

In https://github.com/munin-monitoring/contrib/pull/1362 i made a mistake when rebasing for the pull request, i didn't notice that a928b81374517848ebb75ae71daea2369fd7ec42 was not yet proposed for upstream.

That's why there is errors like this, currently:

2023/04/14-09:20:16 [19590] Error output from docker_memory:
2023/04/14-09:20:16 [19590]     Use of uninitialized value $total in addition (+) at /etc/munin/plugins/docker_memory line 74, <$file> line 1.

This PR adds a total value for docker-memory that enables you to see what the total consumed memory by docker containers was in the past event when the containers no longer exist (and values are no longer reported by docker-memory). It also stacks the values as AREA instead of having them as independent lines.

Info @wt-io-it