1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00
Commit graph

30 commits

Author SHA1 Message Date
Rowan Wookey
c860132cbb Fixed bugs in docker plugin
* Fixed typo in docs
* Fixed not running containers not appearing in all containers
* Fixed excluding containers not working on docker_size
2025-06-11 10:52:46 +01:00
pimlie
a72cba4819 fix: set more dashes for empty extinfo 2025-04-16 13:14:33 +02:00
pimlie
aa2d68c732 fix: set empty extinfo value to '-' when no volumes exists 2025-04-16 12:01:58 +02:00
Olivier Mehani
f16a1b3f64 [docker_] differentiate unused volumes 2025-01-15 20:50:26 +11:00
Rowan Wookey
80d63a8b7f Added docker container size plugin
Requested via mailing list https://sourceforge.net/p/munin/mailman/message/58765217/
2024-04-26 20:37:12 +01:00
Rowan Wookey
8c2b0fa3c4 Fixed issue where the value was empty for extinfo if no containers matched the state closes #1405 2024-03-02 22:40:50 +00:00
kaihen
07e747a1e8 Fix for docker_containers 2021-07-22 13:58:03 +02:00
Lars Kruse
c633ff00ea docker_: ignore contains which are not running
Some containers may be in "restarting" state.  We should ignore these.

Thanks, ogmueller!

Closes: #1209
2021-07-14 22:20:51 +02:00
Lars Kruse
a3ae1af155 docker_: use "exclude" filter for all graphs 2021-07-14 22:17:26 +02:00
Oliver
64d5d8af08 Added check to ensure network stats for container exist before reading them 2021-07-14 22:11:45 +02:00
Daniel Neugebauer
51af0be02b docker_: sanitize value container names
docker_ plugin sanitized container names when printing config but
not values which led to a disparity resulting in no data on graphs
for all containers whose names are subject to sanitization. (#1212)
2021-07-14 21:29:40 +02:00
Olivier Mehani
e794a441e4 Fix some AUTHORS so they all show properly in the plugin gallery
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-07-14 21:09:48 +02:00
Lars Kruse
98aeca5f7b Plugin docker_: fix indentation 2021-02-23 14:34:39 +01:00
Lars Kruse
be4ad90df3 Plugin docker_: use clean fieldname instead of literal container name 2021-02-23 14:33:14 +01:00
Lars Kruse
7ac850853d 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).
2021-02-23 00:13:30 +01:00
Ricardo Sanz
807f15b931 Add 'containers' to the supported series
Apparently, the code support that serie, as the docs say.
2021-02-23 00:02:43 +01:00
Olivier Mehani
1fa5558afd [docker_] add multigraph support
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-01-29 16:21:22 +01:00
Olivier Mehani
2482518826 [docker_] status: report and warn on unhealthy containers
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-01-29 16:21:22 +01:00
Olivier Mehani
d3a7b794bc [docker_] expose APIClient from Wrapper
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-01-29 16:21:22 +01:00
Olivier Mehani
3a20ae41e9 [docker_] memory: report usage if total_rss is not available
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-01-29 16:21:22 +01:00
Olivier Mehani
b09fa4a73f [docker_] Add support for custom attributes reporting in extinfo
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-01-29 16:21:22 +01:00
Lars Kruse
c6f88968d1 Improve perlpod formatting for multiple plugins
Escpecially the final marker ("=cut") was missing in these plugins.
2020-10-06 00:29:38 +02:00
Olivier Mehani
109144ded5 [docker_] Get CPU count from os.cpu_count() everywhere
Docker-py and os.cpu_count() disagree on the count, leading to data
going beyond the scale of the graph. As Docker-py seems to have dummy
CPU data in the stats, we instead always rely on Python's CPU count.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-09-18 12:11:43 +10:00
Olivier Mehani
5bb9b46e08 [docker_] Fix network extinfo
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-09-18 08:03:18 +10:00
Olivier Mehani
b1e3e601fe [docker_] Fix missing f-string
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-09-17 23:17:43 +10:00
Olivier Mehani
254eb56dde [docker_] Fake functools.cached_property for Python<3.8
Fixes: #1116
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-09-09 21:43:22 +02:00
Olivier Mehani
13d5b23442
[plugin/docker_] Improvements to docker_ plugin (#1094)
* Add support for docker_network
* Actually show non running containers counts
* Show intermediate and dangling images counts
* Add warnings on dangling images and dead containers
* Fully support autoconf and suggest
* Add graph_total to the status (thereby making the containers graph
  redundant), CPU and Memory graphs
* Show most graphs as AREASTACK, this allows to get a clearer view of
  both individual and total use
* Use LINESTACK1 to work around munin-contrib/munin#1343
* Include all containers in CPU/Memory/Network config, so data from
  non-running containers is still displayed
* Sprinkle some info and extinfo
* Add ClientWrapper around docker module, providing caching and sorting
* Reverse-engineer author list from git log
2020-08-25 16:17:18 +02:00
Rowan Wookey
9e2b918229 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 matches
then the container is excluded from the cpu and memory graphs.
2020-08-14 22:24:56 +02:00
Rowan Wookey
fcd2af7b07 Improved docker_ performance when getting CPU/Memory stats
Added parallel processing using python's muliprocessing module
to fork a new process each for each docker container when gathering
stats.

This vastly improves performance since using a for loop the script
blocks until the stats are returned.
2020-04-18 15:43:07 +02:00
Doctor
937cb1d030 Rewrite Docker plugin
Fix:
- CPU
- Memory

Add:
- Containers number
- Containers status
- Images number
- Volumes number
2020-02-16 20:27:53 +01:00