Skip to content

Aditional Disks not shown in disk array (VirtIO) #43

Open
@Flexusma

Description

@Flexusma

Hi,
we recently started using checkmate to monitor some of our infrastructure (vms using virtIO Block disks).

We have a node with the following disk configuration (df-h):

root@xxx:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        27G  2.8G   24G  11% /
/dev/vda16      881M  112M  708M  14% /boot
/dev/vda15      105M  6.1M   99M   6% /boot/efi
/dev/vdb         49G   44K   47G   1% /data

the metrics endpoint is returning the following disk data:

    "disk": [
      {
        "device": "/dev/vda1",
        "total_bytes": 28523593728,
        "free_bytes": 25510543360,
        "usage_percent": 0.1051
      }
    ],

Is there currently a way to set the disks to monitor? Or a way to get all physical disks (sdx/vdx)?

We are interested in monitoring the 2nd disk (vdb) instead of vda (or both disks if possible).
I'm not that familiar with go, but if this is not currently implemented, I'd try and implement it myself

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplatform:linuxLinux Platforms

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions