Skip to content

Collect mount point information and filesystem type in filesystems scraper (hostmetrics receiver) #1852

@asuresh4

Description

@asuresh4

Is your feature request related to a problem? Please describe.
The filesystems scraper in the host metrics receiver attaches a device name label to metrics it emits. There are other labels such as mount point, mode and filesystem type that can be collected as well.

Describe the solution you'd like
Currently the filesystems scraper collects partition stats from at most one mount point for devices with multiple mount points. Instead, the scraper should look to collect metrics from all mount points and attach it as a label on metrics. Along with the mount point label, we should also add label for mode which is available as mount options (ro or rw).

Additionally a filter for mount points (like the one for devices) should also be added. This filter would be used in conjunction with the existing filter for devices.

This will be a breaking change to the receiver because it'll generate new MTSes, ones with additional dimensions and in case of devices with multiple mount points, it'll generate one MTS for each mount point.

cc @james-bebbington @dmitryax @keitwb

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions