The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

ONTAP Rest API Discussions

Is it possible to retrieve write,read and others IOPs at node level using Netapp Storage REST APIs


I am looking to retrieve write,read and others IOPs at node level using NetApp Storage REST APIs , Usually we get IOPs info on Oncommand unified manager or grafana , I am trying to automate however I couldn't find anything on this in REST APIs documentation,  Any idea how to do this. Kindly help.Thanks.



There are several metrics APIs depending on the object you are interested in. For example, if you want to see IOPs on aggregates, you could use the GET /storage/aggregates/{uuid}/metrics endpoint or for luns would be GET /storage/luns/{uuid}/metrics. These endpoints existing for clusters running ONTAP 9.7 or above.


You can see from the URL that they require asking about a specific object. There is no node level call that lets you summarize them all automatically. You could write your script to do this however. It might be something like this:


from netapp_ontap import HostConnection, config
from netapp_ontap.resources import Aggregate, PerformanceMetric

config.CONNECTION = HostConnection("", username="admin", password="pass123", verify=False)

# get a list of all of the aggregate uuids on node1
node_name = "node1"
aggregate_uuids = [aggr.uuid for aggr in Aggregate.get_collection(**{"": node_name})]

# for each aggregate, find its total IOPs and add it to the sum
total_iops = 0
for uuid in aggregate_uuids:
    total_iops += sum([ for m in PerformanceMetric.get_collection(uuid, fields="")])

print(f"Total IOPs for node {node_name} is {total_iops}")


This example uses the netapp-ontap library (download, docs).


Thank you Robert for checking this and sharing your thoughts.

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner