Hi everyone,
I'm writing python code to retrieve and analyze data using ONTAP REST API python package. I encounter behaviour that I cannot understand. I hope I am using correct terminology: if not, please correct me so we speak the same language. I'll get to the point:
I'm retrieving all the volumes with the call NetAppResource.Volume.get_collection(). Then I need data for these volumes like: bytes_read, bytes_written but also latency*, read_data and write_data for cifs, nfs etc. Right now I get this data from NetAppResource.CounterRow.get_collection("volume").
a. I understand that in the counters, inside properties, properties.name refers to the Volume name andproperties.uuidrefers to the volume id. Is this right?
- I have volumes with NO counters. Is this possibile? I noticed that I have no counters for volumes with no state. Is this right? But also 1 online volume with no counters. This is strange.
- I have counters with some volume uuid (see point a.) which I cannot find in the volumes list. How can this be?
- Is there a better approach/endpoint to read metrics for a specific Volume? I tried
NetAppResource.VolumeMetrics.get_collection()but I always get (for what I tried at least) data with 0 values. How can this be?
I'm using netapp-ontap-9.14.1
Thank you!