Checkmate icon indicating copy to clipboard operation
Checkmate copied to clipboard

Feature Request: Be able to choose what disks to monitor

Open FirefoxNL opened this issue 4 months ago • 10 comments

Is your feature request related to a problem? Please describe. Follow-up on #2591. The disks now fit on screen but on hosts running Proxmox for example, there is a lot of disks shown here.

Image

Describe the solution you'd like It would be nice if in the configuration screen for the infrastructure monitor you could select which disks to monitor. For this to make sense, having the mointpoint be shown is essential. Otherwise I don't know what disk 1 or disk 32 is and if I want to monitor it or not.

It could for example look like this in the interface. However I am not entirely sure how I feel about the layout just yet... The mountpoint can be quite long and this might not be the best way to display it since it wraps quite quickly due to lack of space. Other people might be able to chime in here.

Image

Describe alternatives you've considered Have not been able to figure out an alternative since I can't just go and disconnect disks. :)

Additional context The best way would be to add Capture agents to all containers and VM's on the hosts but monitoring the host itself for disk space utilization is also very usefull. Since 3 VM's with 100 GB disk each will not know that the host disk of 200 GB is running out of space.

FirefoxNL avatar Aug 22 '25 12:08 FirefoxNL

Can you please check your link again in the description? I can't seem like I can view it. Thanks.

gorkem-bwl avatar Aug 23 '25 00:08 gorkem-bwl

@gorkem-bwl My bad! Fixed the image. :)

FirefoxNL avatar Aug 23 '25 19:08 FirefoxNL

Thanks. Let me ping @mertssmnoglu here to see if we have this information first, to see if it is fixable on Checkmate.

gorkem-bwl avatar Aug 25 '25 16:08 gorkem-bwl

The answer is: Yes

We can filter the disks by device or mount point. Capture already exposes a field device but it's not shown in the infrastructure dashboard.

# Capture Response
# Disk Array 'device' key
data.disk[0].device "/dev/nvme0n1p1"
Device Name ( 🟢 ) Mount Point
/dev/nvme0n1p1 /
/dev/nvme0n1p2 /boot/efi
/dev/nvme0n1p3 /home
/dev/mmcblk0p2 /mnt/somewhere

mertssmnoglu avatar Aug 27 '25 19:08 mertssmnoglu

Thanks for this @mertssmnoglu :)

gorkem-bwl avatar Aug 27 '25 21:08 gorkem-bwl

Hello, I'm Antonin, one of the students from IMT Atlantique who contacted you on discord. I 'm interested to work on this issue, is someone already working on it ? If not, I'll be glad to work on it!

POLETTE Antonin, student at IMT Atlantique.

Antoplt avatar Nov 05 '25 14:11 Antoplt

I have started working on this issue, and I had a few questions concerning the modifications to be made. In order to have the device name of the disk available in the client react components, I need to modify the mongoose diskSchema in Check.js to add a new field "device" that corresponds to the device name that is sent by Capture agent. Is it possible to modify database schemas ? With this modification, I can easily make the device name appear in the disk information as request. Though the precise request was to have the mountpoint shown, and not the device name which is not as useful. In order to do so, I need to add a mountpoint field in Capture's disk metrics. Would that be possible as well ? Do I need to add a feature issue on the Capture github repo ? If so, how can I specify the link with this feature issue ?

Antoplt avatar Nov 12 '25 09:11 Antoplt

Hi @Antoplt ,

Yes, go ahead and add the device field to the check model. Thanks!

ajhollid avatar Nov 12 '25 17:11 ajhollid

Hi @ajhollid ,

May I be assigned to this issue since I have started coding ? I will also add a new feature issue to Capture so as to be able to show the mountpoint of every disk displayed.

Antoplt avatar Nov 18 '25 12:11 Antoplt

Hi @ajhollid ,

May I be assigned to this issue since I have started coding ? I will also add a new feature issue to Capture so as to be able to show the mountpoint of every disk displayed.

There you go!

gorkem-bwl avatar Nov 19 '25 02:11 gorkem-bwl