<?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 perfmon Accurate Memory Utilization Percentage in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/perfmon-Accurate-Memory-Utilization-Percentage/m-p/452810#M55695</link>
    <description>&lt;P&gt;We are starting to use the Splunk App for Infrastructure to ingest Windows metrics.  One of the KPIs we want to measure is percentage of memory used on servers.  It appears that is not an available perfmon counter.  The only way it seems you would be able to calculate percentage of actual memory used is to get the total memory of the server somehow and then do a calculation like:&lt;BR /&gt;
(totalMem - Available_MBytes)/totalMem * 100&lt;/P&gt;

&lt;P&gt;How are others capturing total memory and calculating memory usage in a percentage?&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 17:21:06 GMT</pubDate>
    <dc:creator>mspiewak</dc:creator>
    <dc:date>2019-05-10T17:21:06Z</dc:date>
    <item>
      <title>perfmon Accurate Memory Utilization Percentage</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/perfmon-Accurate-Memory-Utilization-Percentage/m-p/452810#M55695</link>
      <description>&lt;P&gt;We are starting to use the Splunk App for Infrastructure to ingest Windows metrics.  One of the KPIs we want to measure is percentage of memory used on servers.  It appears that is not an available perfmon counter.  The only way it seems you would be able to calculate percentage of actual memory used is to get the total memory of the server somehow and then do a calculation like:&lt;BR /&gt;
(totalMem - Available_MBytes)/totalMem * 100&lt;/P&gt;

&lt;P&gt;How are others capturing total memory and calculating memory usage in a percentage?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/perfmon-Accurate-Memory-Utilization-Percentage/m-p/452810#M55695</guid>
      <dc:creator>mspiewak</dc:creator>
      <dc:date>2019-05-10T17:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: perfmon Accurate Memory Utilization Percentage</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/perfmon-Accurate-Memory-Utilization-Percentage/m-p/452811#M55696</link>
      <description>&lt;P&gt;I don't see any other easy way to get this metrics from perfmon..&lt;BR /&gt;
Your approach looks fine to me to get the %Memory Usage..&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 23:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/perfmon-Accurate-Memory-Utilization-Percentage/m-p/452811#M55696</guid>
      <dc:creator>dagarwal_splunk</dc:creator>
      <dc:date>2019-05-10T23:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: perfmon Accurate Memory Utilization Percentage</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/perfmon-Accurate-Memory-Utilization-Percentage/m-p/452812#M55697</link>
      <description>&lt;P&gt;Thanks, ended up going with something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| mstats avg(_value) as "mem_avail" WHERE "host"="server123" AND metric_name="Memory.Available_MBytes" AND "index"="em_metrics" span=1m by host
| join host [search index=windows host=server123 source=os
| eval totalMemMB = TotalPhysicalMemoryKB/1024]
| eval usedPct = (totalMemMB - mem_avail)/totalMemMB * 100
| timechart avg(usedPct) as "avgUsedPct" span=1m
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 May 2019 18:37:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/perfmon-Accurate-Memory-Utilization-Percentage/m-p/452812#M55697</guid>
      <dc:creator>mspiewak</dc:creator>
      <dc:date>2019-05-13T18:37:10Z</dc:date>
    </item>
  </channel>
</rss>

