Skip to content

collector/diskstats: add device-mapper backing device info metric#3676

Open
Maharacha wants to merge 1 commit into
prometheus:masterfrom
dwellir-public:device-mapper-backing-device-info
Open

collector/diskstats: add device-mapper backing device info metric#3676
Maharacha wants to merge 1 commit into
prometheus:masterfrom
dwellir-public:device-mapper-backing-device-info

Conversation

@Maharacha
Copy link
Copy Markdown

We have this use case where we need to see what device is backing a device mapper.

Example:

node_disk_device_mapper_backing_device_info{instance="foo-bar",device="dm-0",backing_device="nvme0n1"} 1
node_disk_device_mapper_backing_device_info{instance="foo-bar",device="dm-1",backing_device="nvme0n1"} 1
node_disk_device_mapper_backing_device_info{instance="foo-bar",device="dm-2",backing_device="dm-0"} 1
node_disk_device_mapper_backing_device_info{instance="foo-bar",device="dm-2",backing_device="dm-1"} 1
node_disk_device_mapper_backing_device_info{instance="foo-bar",device="dm-3",backing_device="dm-2"} 1
node_disk_device_mapper_backing_device_info{instance="foo-bar",device="dm-4",backing_device="dm-2"} 1
node_disk_device_mapper_backing_device_info{instance="foo-bar",device="dm-5",backing_device="dm-2"} 1

Together with the already existing metric node_disk_device_mapper_info, it's now possible to map the backing devices to volume groups.

@erik78se
Copy link
Copy Markdown

erik78se commented Jun 2, 2026

This is a great addition! Well needed! PV:s are critical to surface like this. +1 from me.

Signed-off-by: Joakim Nyman <joakim.nyman86@gmail.com>
@Maharacha Maharacha force-pushed the device-mapper-backing-device-info branch from 48e8ac6 to e59b259 Compare June 3, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants