Skip to content

[receiver/hostmetrics] Filesystem scraper doesn't respect env var when set #35043

Closed
@atoulme

Description

@atoulme

Component(s)

No response

What happened?

When setting the environment variable HOST_PROC_MOUNTINFO, the filesystem scraper will read mount points from the proper location, but will still apply the root_path prefix to each mount point to read its information.

Instead, when the env var HOST_PROC_MOUNTINFO is set, we should not prefix the mount point with the root_path prefix.

Collector version

v0.108.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions