Skip to content

[BUG]: Disk metrics are not showed in checkmate GUI #131

@mrgionsi

Description

@mrgionsi

Describe the bug
A clear and concise description of what the bug is.

To reproduce
Open Infrastracture monitors
No Disk0 Usage

Screenshots
If applicable, add screenshots to help explain your problem.

Image

System information

  • Operating System (with version): Ubuntu 24.04.3 using Docker
  capture:
      volumes:
          - /etc/os-release:/etc/os-release:ro
      ports:
          - 59232:59232
      environment:
          - API_SECRET=
          - GIN_MODE=debug
      networks:
        - checkmate_default          
      image: ghcr.io/bluewave-labs/capture:latest
  • Output of lsblk:
sda                         8:0    0 465.8G  0 disk 
├─sda1                      8:1    0   400M  0 part 
├─sda2                      8:2    0   260M  0 part 
├─sda3                      8:3    0   128M  0 part 
├─sda4                      8:4    0 446.4G  0 part /internal_ssd
├─sda5                      8:5    0   1.7G  0 part 
├─sda6                      8:6    0   450M  0 part 
├─sda7                      8:7    0   350M  0 part 
└─sda8                      8:8    0  16.1G  0 part 
sdb                         8:16   0   3.6T  0 disk 
├─sdb1                      8:17   0   1.6T  0 part /gionsi_hdd
└─sdb2                      8:18   0   1.1T  0 part /mnt/media_server
nvme0n1                   259:0    0 238.5G  0 disk 
├─nvme0n1p1               259:1    0     1G  0 part /boot/efi
├─nvme0n1p2               259:2    0     2G  0 part /boot
└─nvme0n1p3               259:3    0 235.4G  0 part 
  └─ubuntu--vg-ubuntu--lv 252:0    0 235.4G  0 lvm  /
  • Output of df -Th:
gionsi@nuc7i5:/internal_ssd$ df -Th
Filesystem                        Type      Size  Used Avail Use% Mounted on
tmpfs                             tmpfs     1.6G  7.3M  1.6G   1% /run
efivarfs                          efivarfs  128K   70K   54K  57% /sys/firmware/efi/efivars
/dev/mapper/ubuntu--vg-ubuntu--lv ext4      232G  127G   95G  58% /
tmpfs                             tmpfs     7.8G     0  7.8G   0% /dev/shm
tmpfs                             tmpfs     5.0M  8.0K  5.0M   1% /run/lock
/dev/nvme0n1p2                    ext4      2.0G  206M  1.6G  12% /boot
/dev/sdb2                         ext4      1.1T  729G  319G  70% /mnt/media_server
/dev/nvme0n1p1                    vfat      1.1G  6.2M  1.1G   1% /boot/efi
/dev/sdb1                         exfat     1.7T  348G  1.3T  21% /hdd
/dev/sda4                         ext4      439G  3.9G  413G   1% /internal_ssd
tmpfs                             tmpfs     1.6G  124K  1.6G   1% /run/user/1000
  • Root Filesystem Type:
  • Virtualization (bare metal/VM/container):

Logs
Please provide:

  • Capture metrics responses (if applicable):
       "disk": [
            {
                "device": "unknown",
                "total_bytes": null,
                "free_bytes": null,
                "used_bytes": null,
                "usage_percent": null,
                "total_inodes": null,
                "free_inodes": null,
                "used_inodes": null,
                "inodes_usage_percent": null,
                "read_bytes": null,
                "write_bytes": null,
                "read_time": null,
                "write_time": null
            }
    "errors": [
        {
            "metric": [
                "disk.read_bytes",
                "disk.write_bytes",
                "disk.read_time",
                "disk.write_time"
            ],
            "err": "device stats not found: /dev/mapper/ubuntu--vg-ubuntu--lv"
        },
        {
            "metric": [
                "disk.read_bytes",
                "disk.write_bytes",
                "disk.read_time",
                "disk.write_time"
            ],
            "err": "device stats not found: /dev/mapper/ubuntu--vg-ubuntu--lv"
        },
        {
            "metric": [
                "disk.read_bytes",
                "disk.write_bytes",
                "disk.read_time",
                "disk.write_time"
            ],
            "err": "device stats not found: /dev/mapper/ubuntu--vg-ubuntu--lv"
        },
        {
            "metric": [
                "disk.read_bytes",
                "disk.write_bytes",
                "disk.read_time",
                "disk.write_time"
            ],
            "err": "device stats not found: /dev/mapper/ubuntu--vg-ubuntu--lv"
        }
    ]
}
  • Capture logs (if applicable):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions