I am sending data related to two disks to prometheus. I want to alert if metrics of one disk stops sending metrics. Say I have diskA and diskB and I am collecting disk_up metric. Now diskB failed. In prometheus
disk_up{disk="diskA"} will have data and
disk_up{disk="diskB"} will be missing
absent(disk_up) will be 0 since disk_up have diskA's data.
absent(disk_up{disk="diskB"}) will serve the purpose. But I don't want to hardcode the disk names.
Can I know which is the better way to setup an alert for this scenario.