1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +00:00
Commit graph

46 commits

Author SHA1 Message Date
Marco Schmidt
d058e63ad3 remove images with size 0
To narrow the list of volumes to be shown in munin, all the small
volumes with size "0B" are not shown.
As size 0B is not relevant as volumesize, this these volumes add no
additional information.
2025-04-10 15:59:03 +02:00
Marco Schmidt
ee9558b727 ignore empty lines
Ignore empty lines to prevent writing wrong lables.
2025-04-10 12:53:31 +02:00
Marco Schmidt
fdfe79dcb6 added missing capabilities
Added capabilities "autoconf" which is should be provided if
family=auto. Otherwiese there it produces a warning.
2025-04-10 12:52:33 +02:00
Olivier Mehani
f16a1b3f64 [docker_] differentiate unused volumes 2025-01-15 20:50:26 +11:00
Kenyon Ralph
7966a6e859
Merge pull request #1432 from rwky/docker-container-size
Added docker container size plugin
2024-04-30 12:30:52 -07: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
Andreas Perhab
d3f6266814 docker_cpu: enable configuring warnings for cpu usage 2024-04-24 10:18:40 +02:00
Kenyon Ralph
14bca93e46
Merge pull request #1416 from rwky/issue-1405
Fixed issue where the value was empty for extinfo if no containers matched the state closes #1405
2024-03-02 14:47:28 -08: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
Michael Grote
c05b5417da
add new plugin: docker_volumesize (#1377)
* first try

* indentation

* whitespaces

* check bc

* move sed

* typo

* docs

* shellcheck

* fix bytes

* areastack

* typo

* heading

* areastack

* fix calculation

* base

* cutoff

* comments
2023-06-19 20:29:37 -07:00
Andreas Perhab
a928b81374 docker_memory: add total memory used 2023-04-14 10:41:46 +02:00
Andreas Perhab
0e24b3c935 docker_memory: handle cgroup v2 2023-03-30 14:49:12 +02:00
Andreas Perhab
3b4acf90df docker_cpu: handle cgroup v2 2023-03-16 11:19:57 +01: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
09b88141b3 Improve documantion of many plugins
Specifically the configuration examples are now indented properly.
2020-10-24 17:29:08 +02: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
Andreas Perhab
260c8c8ff4 docker_cpu: fix warnings when docker ps has empty list 2020-08-18 04:15:35 +02:00
Andreas Perhab
0853d409f3 docker_cpu: fix data for container names starting with numbers 2020-08-18 04:15:35 +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
Lars Kruse
17f784270a Whitespace cleanup
* remove trailing whitespace
* remove empty lines at the end of files
2018-08-02 02:33:25 +02:00
Lars Kruse
989f09e66c rename plugin example graphs for plugin gallery visualization
Some example graphs did not follow the naming convention required by the
plugin gallery.
2018-03-24 04:03:08 +01:00
dipohl
6c3ce4e1e5 Category Tree: reduce number of categories 2017-02-22 16:22:46 +01:00
Samuel Cantero
0a5f6adf2c Docker Plugin
Ignore containers in weird state.
2016-01-04 22:42:47 -03:00
Samuel Cantero
ae03bc6fb8 Docker plugin
Fix autoconf support
2015-10-25 18:04:02 -03:00
Samuel Cantero
6de1145610 Add Docker plugins
Docker plugins for:
- Monitor container CPU usage
- Monitor memory CPU usage
2015-10-22 15:37:24 -03:00