munin-plugin-docker's People
Forkers
radziejewiczmunin-plugin-docker's Issues
ZeroDivisionError in docker_stat_memory with non-running containers
Hello I found this error in the condition that aren't containers running
/etc/munin/plugins/docker_stat_memory
Traceback (most recent call last):
File "/etc/munin/plugins/docker_stat_memory", line 139, in <module>
print(get_munin_values())
File "/etc/munin/plugins/docker_stat_memory", line 109, in get_values_memory
f"total.value {sum(memory_usage)}\n"
ZeroDivisionError: division by zero
docker_stat_memory error (KeyError: 'rss')
Hello, testing with:
- CentOS Linux 7 (Core)
- python3-3.6.8-10
- docker (4.2.0)
runing /etc/munin/plugins/docker_stat_memory
Traceback (most recent call last):
File "/etc/munin/plugins/docker_stat_memory", line 140, in <module>
print(get_munin_values())
File "/etc/munin/plugins/docker_stat_memory", line 108, in get_values_memory
memory_usage.append(int(container.stats(stream=False)["memory_stats"]["stats"]["rss"]))
KeyError: 'rss'
Looks like container.stats(stream=False) is returning 'memory_stats': {},
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.