Skip to content

in_node_exporter_metrics: add support of path.rootfs configuration #10650

@vchirikov

Description

@vchirikov

Is your feature request related to a problem? Please describe.

Hi, I want to replace node_exporter with fluent-bit in my k8s cluster (because I already use fluent-bit for logs).
I read the docs and didn't find the path.rootfs parameter which is used in my node_exporter DaemonSet.

If you start container for host monitoring, specify path.rootfs argument.
This argument must match path in bind-mount of host root. The node_exporter will use
path.rootfs as prefix to access host filesystem.

From docs of node_exporter

I searched across the repo and find only path.procfs / path.sysfs which seems not enough to configure properly.

flb_sds_t path_procfs;
flb_sds_t path_sysfs;

I also search in issues and find bot-closed #8434 issue about it from the past.

Without path.rootfs node exporter looks not on the host, but inside container fs.

Describe the solution you'd like

I think fluent-bit should support missed path.rootfs option to have the correct config of in_node_exporter_metrics plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions