Skip to content

Host Metrics in Docker container with mounted /sys /proc still reporting container network interface statistics #23412

@josh-a1x

Description

@josh-a1x

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

Firstly, thank you, I am loving Vector!

We have been using the 0.46.1-alpine image to collect host_metrics from within a container using PROCFS_ROOT and SYSFS_ROOT.

However I noticed that the network metrics looked a bit off, and indeed, it is reporting metrics on the network devices inside the container: lo and eth0 , not my AWS EC2 host, ens5, docker0 etc.

So it appears the env var isn't being respected for network stats

Configuration

host_metrics:
    type: "host_metrics"
    scrape_interval_secs: 5
    # See: https://vector.dev/docs/reference/configuration/sources/host_metrics/#warnings
    filesystem:
      devices:
        excludes: ["binfmt_misc"]
      filesystems:
        excludes: ["binfmt_misc"]
      mountpoints:
        excludes: ["*/proc/sys/fs/binfmt_misc"]

Version

vector 0.46.1 (aarch64-unknown-linux-musl 9a19e8a 2025-04-14 18:36:30.707862743)

Debug Output


Example Data

No response

Additional Context

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions