<form script="panel_resize.js,modal.js" stylesheet="howto.css,ui_simple.css" hideEdit="True" isVisible="true" version="1.1" theme="dark">
	<label>HOWTO MEM: Generate stats and charts with Splunk Search Processing Language (SPL)</label>
	<description>This collection of request samples will help you generating your own reports, dashboards and alerts for Nmon Performance data using the native Search Processing Language</description>

	<row>
		<panel>

			<html>

				<div class="imgheader custom-modal">
					<img src="../../static/app/metricator-for-nmon/icons/dark_theme/memory.png" alt="Memory"/>
					<h2><a data-modal-name="Help_modal">Physical and virtual Memory Statistics (click here for more information)</a></h2>
				</div>

                <!-- Modal -->
                <div class="modal custom-modal-60 fade" id="Help_modal" tabindex="-1" role="dialog" aria-labelledby="Help_modal_Label">
                    <div class="modal-dialog" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"></span></button>
                                <div style="text-align: left;">
                                    <h4 class="modal-title" id="Help_modal_Label">Integrated Navigation:</h4>
                                </div>
                            </div>
                            <div class="modal-body">

                                <div style="text-align: center;">
                                    <img src="../../static/app/metricator-for-nmon/icons/dark_theme/memory.png" alt="Linux"/>
                                    <h1>Memory statistics</h1>
                                </div>

                                <div>
                                    <i>Effective fields: Effective statistics will deduce buffers and cached memory, This amount of memory can be freed by the kernel if it is required by the system or programs.</i>
                                    <br />
                                    <i>Available units: All fields (but total fields) are available in volume (Megabytes) or in percentage.</i>
                                </div>

                                <div style="text-align: left;">

                                    <h1>Physical memory statistics:</h1>

                                    <div class="list">
                                        <lu>
                                            <li><b>memused:</b> Total amount of physical RAM used</li>
                                            <li><b>memfree:</b> Total amount of physical RAM left unused by the system</li>
                                            <li><b>memtotal:</b> Total amount of physical RAM</li>
                                        </lu>
                                    </div>

                                    <div class="list">
                                        <lu>
                                            <li><b>buffers:</b> The amount of physical RAM, used for file buffers</li>
                                            <li><b>cached:</b> The amount of physical RAM, used as cache memory</li>
                                            <br />
                                        </lu>
                                    </div>

                                    <div class="list">
                                        <lu>
                                            <li><b>active:</b> The total amount of buffer or page cache memory, that is in active use. This is memory that has been recently used and is usually not reclaimed for other purposes</li>
                                            <li><b>inactive:</b> The total amount of buffer or page cache memory, that are free and available. This is memory that has not been recently used and can be reclaimed for other purposes</li>
                                        </lu>
                                    </div>


                                    <br />
                                    <br />

                                    <div class="list">
                                        <lu>
                                            <li><b>mem_used_effective:</b> Total amount of physical RAM used, less buffers and cached</li>
                                            <li><b>mem_free_effective:</b> Total amount of physical RAM left unused by the system, less buffers and cached</li>
                                        </lu>
                                    </div>

                                    <h1>Swap memory statistics:</h1>

                                    <div class="list" style="display: inline-block">
                                        <lu>
                                            <li><b>swapfree:</b> The total amount of swap free</li>
                                            <li><b>swapused:</b> The total amount of swap used</li>
                                            <li><b>swaptotal:</b> The total amount of swap available</li>
                                            <li><b>swapcached:</b> The amount of swap, used as cache memory</li>
                                        </lu>
                                    </div>


                                    <div class="list" style="display: inline-block">
                                        <lu>
                                            <li><b>swap_used_effective:</b> The total amount of swap used, less swap cached</li>
                                            <li><b>swap_free_effective:</b> The total amount of swap free, less swap cached</li>
                                            <br />
                                            <br />
                                        </lu>
                                    </div>

                                </div>

                                <div style="text-align:left;">
                                    <h1>Related links:</h1>
                                </div>

                                <div style="text-align: center;" class="bootstrap_title">


                                    <a target="_blank" href="search?q=%7C%20mcatalog%20values(metric_name)%20as%20metrics%20where%20%60nmon_metrics_index%60%20metric_name%3D&quot;os.unix.nmon.memory.mem.*&quot;%20host%3D&quot;*&quot;" class="tryitbtnxl">mcatalog »
                                    </a>

                                    <a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D*%20by%20metric_name%2C%20host%20span%3D1m" class="tryitbtnxl">mstats raw query»
                                    </a>

                                    <a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20(host%3D*)%20(host%3D*)%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_volume_MB%60" class="tryitbtnxl">mstats volume pre-built query »
                                    </a>

                                    <a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20(host%3D*)%20(host%3D*)%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_load_percent_all_metrics%60" class="tryitbtnxl">mstats percentage pre-built query »
                                    </a>

                                    <a target="_blank" href="UI_data_dictionary" class="tryitbtnxl">Data Dictionary »
                                    </a>

                                    <a target="_blank" href="Nmon_baseline?form.osfilter=Linux" class="tryitbtnxl">Baseline Interface »
                                    </a>

                                    <a target="_blank" href="Dashboard_Bubblechart_top_processes?form.osfilter=Linux" class="tryitbtnxl">TOP Dashboard »
                                    </a>

                                </div>

                            </div>

                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                            </div>

                        </div>
                    </div>
                </div>

			</html>

		</panel>

		<panel>
			<title>Optionally preset host and press Enter:</title>

			<input type="text" token="host" searchWhenChanged="true">
				<label>Host:</label>
				<default>*</default>
			</input>

		</panel>

	</row>

	<row>
		<panel>
			<title>Time oriented and statistics oriented charts:</title>

			<html>

				<div>
					<h2>Time Oriented Charts:</h2>
					<br />
				</div>

				<div style="text-align: left;">
					<br />
					<img src="../../static/app/metricator-for-nmon/various/mini/minichart.png" alt="minichart"/>
					<br />
					<br />
				</div>

				<div>
					<h2>Average percentage physical and virtual memory usage over last 24 hours in a line chart by server names (all OS)</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ by OStype, host, metric_name span=1m
| `def_memory_load_percent`
| timechart `nmon_span` dedup_splitvals=t avg(mem_used_effective_PCT) AS mem_used_PCT, avg(swap_used_effective_PCT) AS swap_used_PCT</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_load_percent%60%0A%7C%20timechart%20%60nmon_span%60%20dedup_splitvals%3Dt%20avg(mem_used_effective_PCT)%20AS%20mem_used_PCT%2C%20avg(swap_used_effective_PCT)%20AS%20swap_used_PCT&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.axisY.minimumNumber=0&amp;display.visualizations.charting.chart=line&amp;display.visualizations.charting.axisY.maximumNumber=100&amp;display.visualizations.charting.legend.placement=top&amp;earliest=-24h&amp;latest=now&amp;display.visualizations.charting.axisTitleY.text=%25%20Memory" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>Average total/used physical and virtual memory over last 24 hours (all OS)</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ by OStype, host, metric_name span=1m
| `def_memory_volume_MB`
| eval memtotal=if(isnum(Real_total_MB), Real_total_MB, memtotal), swaptotal=if(isnum(Virtual_total_MB), Virtual_total_MB, swaptotal)
| timechart `nmon_span` useother=f limit=0 avg(mem_used_effective) as mem_used_effective, avg(memtotal) as memtotal, avg(swap_used_effective) as swap_used_effective, avg(swaptotal) as swaptotal by host</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_volume_MB%60%0A%7C%20eval%20memtotal%3Dif(isnum(Real_total_MB)%2C%20Real_total_MB%2C%20memtotal)%2C%20swaptotal%3Dif(isnum(Virtual_total_MB)%2C%20Virtual_total_MB%2C%20swaptotal)%0A%7C%20timechart%20%60nmon_span%60%20useother%3Df%20limit%3D0%20avg(mem_used_effective)%20as%20mem_used_effective%2C%20avg(memtotal)%20as%20memtotal%2C%20avg(swap_used_effective)%20as%20swap_used_effective%2C%20avg(swaptotal)%20as%20swaptotal%20by%20host&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.axisY.minimumNumber=0&amp;display.visualizations.charting.chart=line&amp;display.visualizations.charting.axisY.maximumNumber=&amp;display.visualizations.charting.legend.placement=top&amp;earliest=-24h&amp;latest=now&amp;display.visualizations.charting.axisTitleY.text=MB" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>Linux memory volume report over the last 24 hours (Linux only)</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_linux_metric_filters` host=$host$ by OStype, host, metric_name span=1m
| `def_memory_volume_MB`
| timechart `nmon_span` avg(memfree) AS memfree, avg(cached) as cached, avg(buffers) as buffers, avg(mem_used_effective) as mem_used_effective, avg(memtotal) as memtotal</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_linux_metric_filters`%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_volume_MB%60%0A%7C%20timechart%20%60nmon_span%60%20useother%3Df%20limit%3D0%20avg(mem_used_effective)%20as%20mem_used_effective%2C%20avg(memtotal)%20as%20memtotal%2C%20avg(swap_used_effective)%20as%20swap_used_effective%2C%20avg(swaptotal)%20as%20swaptotal%20by%20host&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.axisY.minimumNumber=0&amp;display.visualizations.charting.chart=line&amp;display.visualizations.charting.axisY.maximumNumber=&amp;display.visualizations.charting.legend.placement=top&amp;earliest=-24h&amp;latest=now&amp;display.visualizations.charting.axisTitleY.text=MB" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>


				<div>
					<h2>Average percentage physical and virtual memory usage over last 30 days for Working hours Business days only (monday to friday, 08h to 19h)</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ by OStype, host, metric_name span=1m
| `Day_BusinessDays_8h-19h`
| `def_memory_load_percent`
| timechart `nmon_span` dedup_splitvals=t avg(mem_used_effective_PCT) AS mem_used_PCT, avg(swap_used_effective_PCT) AS swap_used_PCT</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60Day_BusinessDays_8h-19h%60%0A%7C%20%60def_memory_load_percent%60%0A%7C%20timechart%20%60nmon_span%60%20dedup_splitvals%3Dt%20avg(mem_used_effective_PCT)%20AS%20mem_used_PCT%2C%20avg(swap_used_effective_PCT)%20AS%20swap_used_PCT&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.axisY.minimumNumber=0&amp;display.visualizations.charting.chart=line&amp;display.visualizations.charting.axisY.maximumNumber=100&amp;display.visualizations.charting.legend.placement=top&amp;earliest=-30d%40d&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>Compare average physical memory usage of yesterday versus today in a line chart (time reference of yesterday)</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ earliest="-1d@d" latest="@d" by OStype, metric_name, host span=1m
| `def_memory_load_percent` | timechart `nmon_span` avg(mem_used_effective_PCT) AS yesterday_mem_used_effective_PCT
| appendcols [ | mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ earliest="@d" latest="+1d@d" by OStype, metric_name, host span=1m
| `def_memory_load_percent` | timechart `nmon_span` avg(mem_used_effective_PCT) AS today_mem_used_effective_PCT | fields - _time ]</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$*%20earliest%3D-1d%40d%20latest%3D%40d%20by%20OStype%20metric_name%2C%20host%20span%3D1m%0A%7C%20%60def_memory_load_percent%60%20%7C%20timechart%20%60nmon_span%60%20avg(mem_used_effective_PCT)%20AS%20yesterday_mem_used_effective_PCT%0A%7C%20appendcols%20%5B%20%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$%20earliest%3D%40d%20latest%3D%2B1d%40d%20by%20OStype%20metric_name%2C%20host%20span%3D1m%0A%7C%20%60def_memory_load_percent%60%20%7C%20timechart%20%60nmon_span%60%20avg(mem_used_effective_PCT)%20AS%20today_mem_used_effective_PCT%20%7C%20fields%20-%20_time%20%5D&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.axisY.minimumNumber=0&amp;display.visualizations.charting.chart=line&amp;display.visualizations.charting.axisY.maximumNumber=100&amp;display.visualizations.charting.legend.placement=top&amp;earliest=%40d&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div style="text-align: left;">
					<br />
					<img src="../../static/app/metricator-for-nmon/various/mini/single_trend.png" alt="minichart"/>
					<br />
					<br />
				</div>

				<div>
					<h2>Single trend physical memory usage in percentage over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ by OStype, host, metric_name span=1m
| `def_memory_load_percent`
| timechart `nmon_span` avg(mem_used_effective_PCT) AS avg | eval avg=round(avg, 2) | where isnum(avg)</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_load_percent%60%0A%7C%20timechart%20%60nmon_span%60%20avg(mem_used_effective_PCT)%20AS%20avg%20%7C%20eval%20avg%3Dround(avg%2C%202)%20%7C%20where%20isnum(avg)&amp;display.page.search.mode=smart&amp;dispatch.sample_ratio=1&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.singlevalue.trendDisplayMode=percent&amp;display.visualizations.singlevalue.useColors=1&amp;display.visualizations.singlevalue.colorBy=trend&amp;display.visualizations.singlevalue.trendColorInterpretation=inverse&amp;display.visualizations.singlevalue.numberPrecision=0.00" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>Single trend virtual memory usage in percentage over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ by OStype, host, metric_name span=1m
| `def_memory_load_percent`
| timechart `nmon_span` avg(swap_used_effective_PCT) AS avg | eval avg=round(avg, 2) | where isnum(avg)</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_load_percent%60%0A%7C%20timechart%20%60nmon_span%60%20avg(swap_used_effective_PCT)%20AS%20avg%20%7C%20eval%20avg%3Dround(avg%2C%202)%20%7C%20where%20isnum(avg)&amp;display.page.search.mode=smart&amp;dispatch.sample_ratio=1&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.singlevalue.trendDisplayMode=percent&amp;display.visualizations.singlevalue.useColors=1&amp;display.visualizations.singlevalue.colorBy=trend&amp;display.visualizations.singlevalue.trendColorInterpretation=inverse&amp;display.visualizations.singlevalue.numberPrecision=0.00" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>Stats oriented Charts:</h2>
					<br />
				</div>

				<div style="text-align: left;">
					<br />
					<img src="../../static/app/metricator-for-nmon/various/mini/minigauge.png" alt="minichart"/>
					<br />
					<br />
				</div>

				<div>
					<h2>Gauge chart of average physical memory usage in percentage over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ by OStype, host, metric_name span=1m
| `def_memory_load_percent`
| stats avg(mem_used_effective_PCT) AS avg | eval avg=round(avg, 2)</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_load_percent%60%0A%7C%20stats%20avg(mem_used_effective_PCT)%20AS%20avg%20%7C%20eval%20avg%3Dround(avg%2C%202)&amp;earliest=-24h&amp;latest=now&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.chart=radialGauge&amp;display.page.search.mode=smart&amp;dispatch.sample_ratio=1&amp;display.visualizations.type=charting" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>Gauge chart of average virtual memory usage in percentage over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ by OStype, host, metric_name span=1m
| `def_memory_load_percent`
| stats avg(swap_used_effective_PCT) AS avg | eval avg=round(avg, 2)</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_load_percent%60%0A%7C%20stats%20avg(swap_used_effective_PCT)%20AS%20avg%20%7C%20eval%20avg%3Dround(avg%2C%202)&amp;earliest=-24h&amp;latest=now&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.chart=radialGauge&amp;display.page.search.mode=smart&amp;dispatch.sample_ratio=1&amp;display.visualizations.type=charting" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div style="text-align: left;">
					<img src="../../static/app/metricator-for-nmon/various/mini/minicolumn.png" alt="minicolumn"/>
					<br />
					<br />
				</div>

				<div>
					<h2>Column chart of TOP 10 average physical memory usage in percentage over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ by OStype, host, metric_name span=1m
| `def_memory_load_percent`
| stats avg(mem_used_effective_PCT) AS avg by host | sort - avg | head 10
| eval xlabel=""
| chart useother=f limit=0 values(avg) AS "Avg Real Mem %" by xlabel,host | rename xlabel AS "TOP 10 Real Mem % usage"</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_load_percent%60%0A%7C%20stats%20avg(mem_used_effective_PCT)%20AS%20avg%20by%20host%20%7C%20sort%20-%20avg%20%7C%20head%2010%0A%7C%20eval%20xlabel%3D&quot;&quot;%0A%7C%20chart%20useother%3Df%20limit%3D0%20values(avg)%20AS%20&quot;Avg%20Real%20Mem%20%25&quot;%20by%20xlabel%2Chost%20%7C%20rename%20xlabel%20AS%20&quot;TOP%2010%20Real%20Mem%20%25%20usage&quot;&amp;earliest=-24h%40h&amp;latest=now&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.chart=column&amp;display.visualizations.charting.legend.placement=top&amp;display.visualizations.charting.axisY.minimumNumber=0&amp;display.visualizations.charting.axisY.maximumNumber=100" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>Column chart of TOP 10 average virtual memory usage in percentage over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ by OStype, host, metric_name span=1m
| `def_memory_load_percent`
| stats avg(swap_used_effective_PCT) AS avg by host | sort - avg | head 10
| eval xlabel=""
| chart useother=f limit=0 values(avg) AS "Avg Virtual Mem %" by xlabel,host | rename xlabel AS "TOP 10 Virtual Mem % usage"</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_load_percent%60%0A%7C%20stats%20avg(swap_used_effective_PCT)%20AS%20avg%20by%20host%20%7C%20sort%20-%20avg%20%7C%20head%2010%0A%7C%20eval%20xlabel%3D&quot;&quot;%0A%7C%20chart%20useother%3Df%20limit%3D0%20values(avg)%20AS%20&quot;Avg%20Real%20Mem%20%25&quot;%20by%20xlabel%2Chost%20%7C%20rename%20xlabel%20AS%20&quot;TOP%2010%20Real%20Mem%20%25%20usage&quot;&amp;earliest=-24h%40h&amp;latest=now&amp;display.page.search.tab=visualizations&amp;display.general.type=visualizations&amp;display.visualizations.charting.chart=column&amp;display.visualizations.charting.legend.placement=top&amp;display.visualizations.charting.axisY.minimumNumber=0&amp;display.visualizations.charting.axisY.maximumNumber=100" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

			</html>

		</panel>
	</row>

	<row>
		<panel>
			<title>Table Statistics:</title>

			<html>

				<div style="text-align: left;">
					<br />
					<img src="../../static/app/metricator-for-nmon/various/mini/minitable.png" alt="minitable"/>
					<br />
					<br />
				</div>

				<div>
					<h2>Average physical and virtual memory usage in percentage over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_all_os_metric_filters` host=$host$ by OStype, host, metric_name span=1m
| `def_memory_load_percent`
| stats avg(mem_used_effective_PCT) as mem_used_effective_PCT, avg(swap_used_effective_PCT) as swap_used_effective_PCT, sparkline(avg(mem_used_effective_PCT),) As sparkline_mem_used_effective_PCT, sparkline(avg(swap_used_effective_PCT),) As sparkline_swap_used_effective_PCT by host
| eval mem_used_effective_PCT=round(mem_used_effective_PCT, 2), swap_used_effective_PCT=round(swap_used_effective_PCT, 2)</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20`def_memory_all_os_metric_filters`%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_load_percent%60%0A%7C%20stats%20avg(mem_used_effective_PCT)%20as%20mem_used_effective_PCT%2C%20avg(swap_used_effective_PCT)%20as%20swap_used_effective_PCT%2C%20sparkline(avg(mem_used_effective_PCT)%2C)%20As%20sparkline_mem_used_effective_PCT%2C%20sparkline(avg(swap_used_effective_PCT)%2C)%20As%20sparkline_swap_used_effective_PCT%20by%20host%0A%7C%20eval%20mem_used_effective_PCT%3Dround(mem_used_effective_PCT%2C%202)%2C%20swap_used_effective_PCT%3Dround(swap_used_effective_PCT%2C%202)&amp;display.page.search.tab=statistics&amp;display.general.type=statistics&amp;earliest=-24h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>Linux average percentage memory report over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_linux_metric_filters` OStype=Linux host=$host$ by OStype, host, metric_name span=1m
| `def_memory_percentage_linux_report`</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20%60def_memory_linux_metric_filters%60%20OStype%3DLinux%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_percentage_linux_report%60&amp;display.page.search.tab=statistics&amp;display.general.type=statistics&amp;earliest=-24h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>Linux average volume memory report over last 24 hours</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` `def_memory_linux_metric_filters` OStype=Linux host=$host$ by OStype, host, metric_name span=1m
| `def_memory_volume_linux_report`</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20%60def_memory_linux_metric_filters%60%20OStype%3DLinux%20host%3D$host$%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_volume_linux_report%60&amp;display.page.search.tab=statistics&amp;display.general.type=statistics&amp;earliest=-24h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

			</html>

		</panel>
	</row>

	<row>
		<panel>
			<title>Alerting:</title>

			<html>

				<div style="text-align: left;">
					<br />
					<img src="../../static/app/metricator-for-nmon/various/mini/minisingle.png" alt="minisingle"/>
					<br />
					<br />
				</div>

				<div>
					<h2>Find servers having an average physical memory usage higher than 90% for a minimal contiguous period of 5 minutes</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` metric_name=os.unix.nmon.memory.mem.Real_total_MB OR metric_name=os.unix.nmon.memory.mem.Real_free_MB OR metric_name=os.unix.nmon.memory.mem.memtotal OR metric_name=os.unix.nmon.memory.mem.buffers OR metric_name=os.unix.nmon.memory.mem.cached OR metric_name=os.unix.nmon.memory.mem.memfree host="$host$" by OStype, host, metric_name span=1m
| `def_memory_load_percent`
| fields _time, host,mem_used_effective_PCT
| where mem_used_effective_PCT&gt;90
| stats latest(_time) as _time range(_time) as duration latest(mem_used_effective_PCT) as latest_mem_used_effective_PCT by host
| where (latest_mem_used_effective_PCT>=90) AND (duration &gt;= 300)
| eval "duration (hh:mm:ss)"=tostring(duration,"duration")
| fields frameID,host,_time,duration,"duration (hh:mm:ss)",latest_mem_used_effective_PCT</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.memory.mem.Real_total_MB%20OR%20metric_name%3Dos.unix.nmon.memory.mem.Real_free_MB%20OR%20metric_name%3Dos.unix.nmon.memory.mem.memtotal%20OR%20metric_name%3Dos.unix.nmon.memory.mem.buffers%20OR%20metric_name%3Dos.unix.nmon.memory.mem.cached%20OR%20metric_name%3Dos.unix.nmon.memory.mem.memfree%20host%3D&quot;$host$&quot;%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60def_memory_load_percent%60%0A%7C%20fields%20_time%2C%20host%2Cmem_used_effective_PCT%0A%7C%20where%20mem_used_effective_PCT&gt;90%0A%7C%20stats%20latest(_time)%20as%20_time%20range(_time)%20as%20duration%20latest(mem_used_effective_PCT)%20as%20latest_mem_used_effective_PCT%20by%20host%0A%7C%20where%20(latest_mem_used_effective_PCT&gt;%3D90)%20AND%20(duration%20&gt;%3D%20300)%0A%7C%20eval%20&quot;duration%20(hh%3Amm%3Ass)&quot;%3Dtostring(duration%2C&quot;duration&quot;)%0A%7C%20fields%20host%2C_time%2Cduration%2C&quot;duration%20(hh%3Amm%3Ass)&quot;%2Clatest_mem_used_effective_PCT&amp;display.page.search.tab=statistics&amp;display.general.type=statistics&amp;earliest=-24h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

				<div>
					<h2>Find servers having an average physical usage higher than 90% for a minimal contiguous period of 5 minutes, restricted to Open hours and Business days (monday to friday, 08h to 19h)</h2>
					<pre>| mstats avg(_value) as value where `nmon_metrics_index` metric_name=os.unix.nmon.memory.mem.Real_total_MB OR metric_name=os.unix.nmon.memory.mem.Real_free_MB OR metric_name=os.unix.nmon.memory.mem.memtotal OR metric_name=os.unix.nmon.memory.mem.buffers OR metric_name=os.unix.nmon.memory.mem.cached OR metric_name=os.unix.nmon.memory.mem.memfree host="$host$" by OStype, host, metric_name span=1m
| `Day_BusinessDays_8h-19h`
| `def_memory_load_percent`
| fields _time, host,mem_used_effective_PCT
| where mem_used_effective_PCT&gt;90
| stats latest(_time) as _time range(_time) as duration latest(mem_used_effective_PCT) as latest_mem_used_effective_PCT by host
| where (latest_mem_used_effective_PCT>=90) AND (duration &gt;= 300)
| eval "duration (hh:mm:ss)"=tostring(duration,"duration")
| fields frameID,host,_time,duration,"duration (hh:mm:ss)",latest_mem_used_effective_PCT</pre>
				</div>

				<div>
					<div class="cat_title">
						<a target="_blank" href="search?q=%7C%20mstats%20avg(_value)%20as%20value%20where%20%60nmon_metrics_index%60%20metric_name%3Dos.unix.nmon.memory.mem.Real_total_MB%20OR%20metric_name%3Dos.unix.nmon.memory.mem.Real_free_MB%20OR%20metric_name%3Dos.unix.nmon.memory.mem.memtotal%20OR%20metric_name%3Dos.unix.nmon.memory.mem.buffers%20OR%20metric_name%3Dos.unix.nmon.memory.mem.cached%20OR%20metric_name%3Dos.unix.nmon.memory.mem.memfree%20host%3D&quot;$host$&quot;%20by%20OStype%20%2Chost%2C%20metric_name%20span%3D1m%0A%7C%20%60Day_BusinessDays_8h-19h%60%0A%7C%20%60def_memory_load_percent%60%0A%7C%20fields%20_time%2C%20host%2Cmem_used_effective_PCT%0A%7C%20where%20mem_used_effective_PCT&gt;90%0A%7C%20stats%20latest(_time)%20as%20_time%20range(_time)%20as%20duration%20latest(mem_used_effective_PCT)%20as%20latest_mem_used_effective_PCT%20by%20host%0A%7C%20where%20(latest_mem_used_effective_PCT&gt;%3D90)%20AND%20(duration%20&gt;%3D%20300)%0A%7C%20eval%20&quot;duration%20(hh%3Amm%3Ass)&quot;%3Dtostring(duration%2C&quot;duration&quot;)%0A%7C%20fields%20host%2C_time%2Cduration%2C&quot;duration%20(hh%3Amm%3Ass)&quot;%2Clatest_mem_used_effective_PCT&amp;display.page.search.tab=statistics&amp;display.general.type=statistics&amp;earliest=-24h&amp;latest=now" class="tryitbtn-blue">Open in search »
						</a>
					</div>
					<br />
				</div>

			</html>

		</panel>

	</row>

</form>
