Closed Ab-hishek closed 3 years ago
Will we have to add monitoring for mayastor too? Just wanted to check if another condition would be needed for that one ?
In the future -> yes. But as of now, we don't have any info about mayastor metrics.
Also, with Mayastor - we may not really use the same metric label called openebs_size_of_volume
Issue: JIva volume dashboard were showing data for volumes other than jiva provisoned ones. Similar is the case with cStor volume dashboard.
Why was this happening?
Jiva volume dashboard -> When there were no jiva volumes in the cluster, the dashboard template variable
openebs_jiva_label
had empty string value. And filtering openebs volumes upon empty jiva label gave us a list of all OpenEBS volumes(that were not jiva provisioned volumes i.e cstor volumes becauseopenebs_size_of_volumes
only exports details about jiva and cstor volumes).Similar explanation for cstor volume dashboard.
Fix: Instead of only using single variable
openebs_jiva_label
for filtering jiva volumes, we also take care of checking whether it is not a cstor volume by adding an extra condition for cstor label -->openebs_cstor_labels
= ""(empty). This will filter out only jiva provisoned volumes.Signed-off-by: Abhishek Agarwal abhishek.agarwal@mayadata.io