docker_: use "exclude" filter for all graphs
Added check to ensure network stats for container exist before reading them
docker_: sanitize value container names
docker_ plugin sanitized container names when printing config butnot values which led to a disparity resulting in no data on graphsfor all containers whose names are subject to sanitization. (#1212)
Fix some AUTHORS so they all show properly in the plugin gallery
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
Plugin docker_: fix indentation
Plugin docker_: use clean fieldname instead of literal container name
Plugin docker_: reduce permissions of plugin
root privileges are not required for sending queries to the docker socket.Instead the group "docker" should be sufficient.
Additionally replace /var/run with /run (following updates of FHS).
Add 'containers' to the supported series
Apparently, the code support that serie, as the docs say.
[docker_] add multigraph support
[docker_] status: report and warn on unhealthy containers
[docker_] expose APIClient from Wrapper
[docker_] memory: report `usage` if `total_rss` is not available
[docker_] Add support for custom attributes reporting in extinfo
Improve documantion of many plugins
Specifically the configuration examples are now indented properly.
Improve perlpod formatting for multiple plugins
Escpecially the final marker ("=cut") was missing in these plugins.
[docker_] Get CPU count from os.cpu_count() everywhere
Docker-py and os.cpu_count() disagree on the count, leading to datagoing beyond the scale of the graph. As Docker-py seems to have dummyCPU data in the stats, we instead always rely on Python's CPU count....
[docker_] Fix network extinfo
[docker_] Fix missing f-string
[docker_] Fake functools.cached_property for Python<3.8
Fixes: #1116Signed-off-by: Olivier Mehani <shtrom@ssji.net>
[plugin/docker_] Improvements to docker_ plugin (#1094)
docker_cpu: fix warnings when docker ps has empty list
docker_cpu: fix data for container names starting with numbers
Added env to exclude containers from cpu/memory docker graphs
It maybe desirable to not generate stats for ephemeral containers.This commit adds an env variable EXCLUDE_CONTAINER_NAME which is a regex, if it matchesthen the container is excluded from the cpu and memory graphs.
Improved docker_ performance when getting CPU/Memory stats
Added parallel processing using python's muliprocessing moduleto fork a new process each for each docker container when gatheringstats.
This vastly improves performance since using a for loop the script...
Rewrite Docker plugin
Fix:- CPU- Memory
Add:- Containers number- Containers status- Images number- Volumes number
Whitespace cleanup
rename plugin example graphs for plugin gallery visualization
Some example graphs did not follow the naming convention required by theplugin gallery.
Category Tree: reduce number of categories
Docker Plugin
Ignore containers in weird state.
Docker plugin
Fix autoconf support
Add Docker plugins
Docker plugins for:- Monitor container CPU usage- Monitor memory CPU usage