Volume /var/lib/docker not showing in GUI, but in the agent output

Fortsetzung der Diskussion von Volume not showing in monitoring, but OK in local agent:

CMK version: 2.4.0p23
OS version: Ubuntu 24.04

I Just wanted to bring this topic back to the top.

We’ve also had this issue and swapped the code within the df.py, but this can only be a temporary fix.

The correct way to fix this in the df.py should be like this, so you can set the behavior via the ruleset.

def _filter_df_blocks(
    df_blocks: Iterable[DfBlock], inventory_options: Mapping[str, Any]
) -> Iterator[DfBlock]:
    ignore_fs_types = inventory_options.get("ignore_fs_types", _INVENTORY_DF_EXCLUDE_FS)
    never_ignore_mountpoints = inventory_options.get("never_ignore_mountpoints", [])

    for df_block in df_blocks:
        if not _ignore_mountpoint(df_block.mountpoint, never_ignore_mountpoints):
            yield df_block
            continue

        if df_block.mountpoint in EXCLUDED_MOUNTPOINTS:
            continue

        if df_block.mountpoint.startswith("/var/lib/docker/"):
            # Always exclude filesystems below dockers local storage area
            # and also exclude docker mounts in containers which are reported
            # by the agent when the agent is executed in the container context
            continue

        if df_block.fs_type not in ignore_fs_types:
            yield df_block
            continue

Is there a way to fix this in future versions?

Thanks

Man-in-Black