Skip to content

Issue collecting duplicate entries from /proc/mounts #377

@filippog

Description

@filippog

Hi,
on node_exporter 0.13.0 rc2 I've noticed scrape failures on duplicate entries in /proc/mounts.

* [from Gatherer #1] collected metric node_filesystem_size label:<name:"device" value:"/dev/md0" > label:<name:"fstype" value:"ext4" > label:<name:"mountpoint" value:"/exp/backup-others" > gauge:<value:1.1903515017216e+13 >  was collected before with the same name and label values

e.g. with

/dev/md0 /exp/backup-others ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/md0 /exp/backup-others ext4 rw,relatime,errors=remount-ro,data=ordered 0 0

Admittedly this is a machine misconfiguration though AFAICT duplicate entries are harmless on (recent?) Linux. I think duplicate mounts shouldn't make the whole collector fail but e.g. be logged and continue instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions