Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker_: Plugin fails for cpu, memory and networking when a container is in restart loop #1281

Open
NITEMAN opened this issue Dec 31, 2021 · 0 comments

Comments

@NITEMAN
Copy link

NITEMAN commented Dec 31, 2021

The traces looks like:

# munin-run docker_cpu
...
Traceback (most recent call last):
  File "/etc/munin/plugins/docker_cpu", line 474, in <module>
    main()
  File "/etc/munin/plugins/docker_cpu", line 433, in main
    print_containers_cpu(client)
  File "/etc/munin/plugins/docker_cpu", line 268, in print_containers_cpu
    system_delta = (float(stats["cpu_stats"]["system_cpu_usage"])
KeyError: 'system_cpu_usage'
# munin-run docker_memory
...
Traceback (most recent call last):
  File "/etc/munin/plugins/docker_memory", line 474, in <module>
    main()
  File "/etc/munin/plugins/docker_memory", line 447, in main
    print_containers_memory(client)
  File "/etc/munin/plugins/docker_memory", line 278, in print_containers_memory
    print(container.name + '.value', stats['memory_stats']['stats']['total_rss'])
KeyError: 'stats'
# munin-run docker_network
...
Traceback (most recent call last):
  File "/etc/munin/plugins/docker_network", line 474, in <module>
    main()
  File "/etc/munin/plugins/docker_network", line 470, in main
    print_containers_network(client)
  File "/etc/munin/plugins/docker_network", line 286, in print_containers_network
    for data in stats['networks'].values():
KeyError: 'networks'
NITEMAN added a commit to NITEMAN/munin-contrib that referenced this issue Dec 31, 2021
NITEMAN added a commit to NITEMAN/munin-contrib that referenced this issue Jan 3, 2022
NITEMAN added a commit to NITEMAN/munin-contrib that referenced this issue Jan 3, 2022
jonhattan pushed a commit to sbitio/munin-monitoring-contrib that referenced this issue Jan 11, 2022
jonhattan pushed a commit to sbitio/munin-monitoring-contrib that referenced this issue Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant