From d058e63ad31b9ac63be643cb0ea5172d27632422 Mon Sep 17 00:00:00 2001 From: Marco Schmidt Date: Thu, 10 Apr 2025 15:59:03 +0200 Subject: [PATCH] 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. --- plugins/docker/docker_volumesize | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/docker/docker_volumesize b/plugins/docker/docker_volumesize index d1f598b4..f111f11d 100644 --- a/plugins/docker/docker_volumesize +++ b/plugins/docker/docker_volumesize @@ -38,7 +38,7 @@ if [ "$1" = "autoconf" ]; then exit 0 fi -volume_info=$(docker system df -v --format '{{json .Volumes}}' | jq -r '.[] | "\(.Name):\(.Size):\(.Labels)"') +volume_info=$(docker system df -v --format '{{json .Volumes}}' | jq -r '.[] | select(.Size != "0B" ) | "\(.Name):\(.Size):\(.Labels)"')