<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Question Regarding Volume Metrics Output in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Question-Regarding-Volume-Metrics-Output/m-p/446995#M562</link>
    <description>&lt;P&gt;I am fetching volume metrics from the following endpoint:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;GET /api/storage/volumes/&lt;/SPAN&gt;&lt;SPAN&gt;11111&lt;/SPAN&gt;&lt;SPAN&gt;/metrics?fields=throughput%&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;Clatency%&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;Ciops&amp;amp;max_records=&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;interval=&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;h&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Here is the output:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;GET trace: &amp;lt; GET /api/storage/volumes/11111/metrics?fields=throughput%2Clatency%2Ciops&amp;amp;max_records=1&amp;amp;interval=1h

{
  "records": [
    {
      "timestamp": "2023-08-15T23:51:00Z",
      "latency": {
        "read": 0,
        "write": 205,
        "other": 128,
        "total": 128
      },
      "iops": {
        "read": 0,
        "write": 1,
        "other": 7105,
        "total": 7107
      },
      "throughput": {
        "read": 0,
        "write": 15207,
        "other": 0,
        "total": 15207
      },
      "_links": {
        "self": {
          "href": "/api/storage/volumes/11111/metrics/2023-08-15T23%3A51%3A00Z"
        }
      }
    }
  ],
  "num_records": 1,
  "_links": {
    "self": {
      "href": "/api/storage/volumes/11111/metrics?fields=throughput%2Clatency%2Ciops&amp;amp;max_records=1&amp;amp;interval=1h"
    },
    "next": {
      "href": "/api/storage/volumes/11111/metrics?start.seq_no=1&amp;amp;start.timestamp=2023-08-15T23%3A50%3A45Z&amp;amp;fields=throughput%2Clatency%2Ciops&amp;amp;max_records=1&amp;amp;interval=1h"
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How are 'total' values calculated? For example, for 'throughput', the total value makes sense. For IOPS, it sort of makes sense even though "7105 + 1 = 7106", not "7107"... But for latency, total value does not make sense to me. Why is it "128"?&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Wed, 04 Jun 2025 09:45:48 GMT</pubDate>
    <dc:creator>ns-api-guru</dc:creator>
    <dc:date>2025-06-04T09:45:48Z</dc:date>
    <item>
      <title>Question Regarding Volume Metrics Output</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Question-Regarding-Volume-Metrics-Output/m-p/446995#M562</link>
      <description>&lt;P&gt;I am fetching volume metrics from the following endpoint:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;GET /api/storage/volumes/&lt;/SPAN&gt;&lt;SPAN&gt;11111&lt;/SPAN&gt;&lt;SPAN&gt;/metrics?fields=throughput%&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;Clatency%&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;Ciops&amp;amp;max_records=&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;interval=&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;h&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Here is the output:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;GET trace: &amp;lt; GET /api/storage/volumes/11111/metrics?fields=throughput%2Clatency%2Ciops&amp;amp;max_records=1&amp;amp;interval=1h

{
  "records": [
    {
      "timestamp": "2023-08-15T23:51:00Z",
      "latency": {
        "read": 0,
        "write": 205,
        "other": 128,
        "total": 128
      },
      "iops": {
        "read": 0,
        "write": 1,
        "other": 7105,
        "total": 7107
      },
      "throughput": {
        "read": 0,
        "write": 15207,
        "other": 0,
        "total": 15207
      },
      "_links": {
        "self": {
          "href": "/api/storage/volumes/11111/metrics/2023-08-15T23%3A51%3A00Z"
        }
      }
    }
  ],
  "num_records": 1,
  "_links": {
    "self": {
      "href": "/api/storage/volumes/11111/metrics?fields=throughput%2Clatency%2Ciops&amp;amp;max_records=1&amp;amp;interval=1h"
    },
    "next": {
      "href": "/api/storage/volumes/11111/metrics?start.seq_no=1&amp;amp;start.timestamp=2023-08-15T23%3A50%3A45Z&amp;amp;fields=throughput%2Clatency%2Ciops&amp;amp;max_records=1&amp;amp;interval=1h"
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How are 'total' values calculated? For example, for 'throughput', the total value makes sense. For IOPS, it sort of makes sense even though "7105 + 1 = 7106", not "7107"... But for latency, total value does not make sense to me. Why is it "128"?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:45:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Question-Regarding-Volume-Metrics-Output/m-p/446995#M562</guid>
      <dc:creator>ns-api-guru</dc:creator>
      <dc:date>2025-06-04T09:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding Volume Metrics Output</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Question-Regarding-Volume-Metrics-Output/m-p/447024#M563</link>
      <description>&lt;P&gt;This is working as designed. What you are looking at is the latency graphs for a volume workload.&lt;BR /&gt;The 'workload total latency' here is the total average latency for that workload.&lt;BR /&gt;Which means that it is derived by calculating:&lt;/P&gt;&lt;P&gt;((read ops * read lat) + (write ops * write lat) + (other ops * other lat)) / (read ops + write ops + other ops)&lt;/P&gt;&lt;P&gt;In this case that would be ((0*0)+(1*205)+(7105*128))/(0 + 1 + 7105) = 128.0108 = 128 as an integer&lt;/P&gt;&lt;P&gt;The 'workload latency' here represents the avg read, write and other latency seen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as the IOPS &lt;SPAN&gt;incongruity&lt;/SPAN&gt; it is most likely explained by converting the floting point number to integers. For example: 7105.3 + 1.3 = 7106.6 -&amp;gt; 7107 as an integer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 19:35:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Question-Regarding-Volume-Metrics-Output/m-p/447024#M563</guid>
      <dc:creator>ddegraaf</dc:creator>
      <dc:date>2023-08-17T19:35:59Z</dc:date>
    </item>
  </channel>
</rss>

