<?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 In Theory will this work for Total Drive space on Hosts using API v2 in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/In-Theory-will-this-work-for-Total-Drive-space-on-Hosts-using/m-p/124268#M1057</link>
    <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;So my Director has asked me to define several basic resources &lt;/P&gt;&lt;P&gt;"By application"&lt;/P&gt;&lt;P&gt;In this instance. I am being asked to provide&lt;/P&gt;&lt;P&gt;the total drive space available vs the total drive space used&lt;/P&gt;&lt;P&gt;for Application X that lives on a list of  servers.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I get what is being asked. There is a goal to tell the Business users&lt;/P&gt;&lt;P&gt;"This applications uses this much space, this much CPU, memory..etc...etc.."&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My first thought was simply to pull the disk size in bytes vs the bytes used&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As I look through the API v2,&lt;/P&gt;&lt;P&gt;I did NOT see a metric for "disk size in bytes"&lt;/P&gt;&lt;P&gt;What I did find was &lt;/P&gt;&lt;P&gt;"builtin:host.disk.avail"&lt;/P&gt;&lt;P&gt;and "builtin:host.disk.used"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It would follow (I think, please correct me if I am wrong)&lt;/P&gt;&lt;P&gt;That is I had a static point in time of all the "used"&lt;/P&gt;&lt;P&gt;added to the "available" I would have in effect the "total" drive size&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So the tricky part is I saw one of 2 ways of doing this&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1) Pick a static metric point (say 1 AM.. any day) and pull the stats on all the servers at that point in time only&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;2) Use the INF setting for resolution &lt;/P&gt;&lt;P&gt;My problem is in the understanding of the term &lt;/P&gt;&lt;P&gt;"One aggregated data point of each series. Set Inf to use this option"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is this saying that it is taking all the different time series of a metric and adding them then averaging?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Would it be more accurate to simple take option #1 and pick a static point for the day to do the calculation?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;AM I missing anything fundamental?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for this awesome community!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 10 Oct 2019 13:56:59 GMT</pubDate>
    <dc:creator>runatyr</dc:creator>
    <dc:date>2019-10-10T13:56:59Z</dc:date>
    <item>
      <title>In Theory will this work for Total Drive space on Hosts using API v2</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/In-Theory-will-this-work-for-Total-Drive-space-on-Hosts-using/m-p/124268#M1057</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;So my Director has asked me to define several basic resources &lt;/P&gt;&lt;P&gt;"By application"&lt;/P&gt;&lt;P&gt;In this instance. I am being asked to provide&lt;/P&gt;&lt;P&gt;the total drive space available vs the total drive space used&lt;/P&gt;&lt;P&gt;for Application X that lives on a list of  servers.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I get what is being asked. There is a goal to tell the Business users&lt;/P&gt;&lt;P&gt;"This applications uses this much space, this much CPU, memory..etc...etc.."&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My first thought was simply to pull the disk size in bytes vs the bytes used&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As I look through the API v2,&lt;/P&gt;&lt;P&gt;I did NOT see a metric for "disk size in bytes"&lt;/P&gt;&lt;P&gt;What I did find was &lt;/P&gt;&lt;P&gt;"builtin:host.disk.avail"&lt;/P&gt;&lt;P&gt;and "builtin:host.disk.used"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It would follow (I think, please correct me if I am wrong)&lt;/P&gt;&lt;P&gt;That is I had a static point in time of all the "used"&lt;/P&gt;&lt;P&gt;added to the "available" I would have in effect the "total" drive size&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So the tricky part is I saw one of 2 ways of doing this&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1) Pick a static metric point (say 1 AM.. any day) and pull the stats on all the servers at that point in time only&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;2) Use the INF setting for resolution &lt;/P&gt;&lt;P&gt;My problem is in the understanding of the term &lt;/P&gt;&lt;P&gt;"One aggregated data point of each series. Set Inf to use this option"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is this saying that it is taking all the different time series of a metric and adding them then averaging?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Would it be more accurate to simple take option #1 and pick a static point for the day to do the calculation?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;AM I missing anything fundamental?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for this awesome community!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Oct 2019 13:56:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/In-Theory-will-this-work-for-Total-Drive-space-on-Hosts-using/m-p/124268#M1057</guid>
      <dc:creator>runatyr</dc:creator>
      <dc:date>2019-10-10T13:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: In Theory will this work for Total Drive space on Hosts using API v2</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/In-Theory-will-this-work-for-Total-Drive-space-on-Hosts-using/m-p/124269#M1058</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;The metric API v2 typically is used to fetch the complete series of data points over time for a selected metric such as "builtin:host.disk.avail". If you want to get one scalar value representing the complete series as one value (typically as average) you can use the 'Inf' option. &lt;/P&gt;&lt;P&gt;So you would then get one value that represents the average disk available over the selected period of time. &lt;/P&gt;&lt;P&gt;Best greetings,&lt;/P&gt;&lt;P&gt;Wolfgang  &lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/22187-1571122767395.png" /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Oct 2019 06:59:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/In-Theory-will-this-work-for-Total-Drive-space-on-Hosts-using/m-p/124269#M1058</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2019-10-15T06:59:32Z</dc:date>
    </item>
  </channel>
</rss>

