Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
dashboard review
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhemmarchand committed Sep 1, 2017
1 parent 8c699c8 commit a638721
Show file tree
Hide file tree
Showing 48 changed files with 999 additions and 1,334 deletions.
Binary file modified nmon-performance-monitor-for-unix-and-linux-systems_1911.tgz
Binary file not shown.
53 changes: 21 additions & 32 deletions nmon/default/data/ui/views/Dashboard_bulletcharts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@
<earliestTime>-4h</earliestTime>
<latestTime>now</latestTime>
</default>
<!--
Reset the form token changed
-->
<change>
<unset token="drilldown_cpuhost"></unset>
<unset token="drilldown_memhost"></unset>
<unset token="drilldown_swaphost"></unset>
<unset token="form.refresh"></unset>
</change>
</input>

<input type="dropdown" token="timefilter" searchWhenChanged="true">
Expand Down Expand Up @@ -120,29 +111,6 @@

</input>

<!--
This input is an hidden input that intents to smartly configure the auto refresh feature
Assume that if the latest time range is higher or equal than 4 hours in delta with now, the auto refresh should be disabled.
As well, this form will be reset whenever the time range period is modified
-->

<input type="dropdown" token="autorefresh_detection" depends="$hidden_element$" searchWhenChanged="true">
<label>Is past data search ?:</label>
<search>
<query>| stats c | addinfo | eval now=now(), delta_now=now-info_max_time, is_past_search=if(delta_now>=14400, "true", "false") | fields is_past_search</query>
<earliest>$timerange.earliest$</earliest>
<latest>$timerange.latest$</latest>
</search>
<selectFirstChoice>true</selectFirstChoice>
<fieldForLabel>is_past_search</fieldForLabel>
<fieldForValue>is_past_search</fieldForValue>
<change>
<condition value="true">
<set token="form.refresh">0</set>
</condition>
</change>
</input>

<input type="dropdown" token="refresh" searchWhenChanged="true">
<label>Auto-refresh:</label>
<choice value="30s">30 sec</choice>
Expand All @@ -154,6 +122,27 @@

</fieldset>

<!--
Dynamic configuration
The following searches are being used to define various tokens using event handlers
-->

<!-- autorefresh_detection -->

<search id="autorefresh_detection">
<query>| stats c | addinfo | eval now=now(), delta_now=now-info_max_time, is_past_search=if(delta_now>=14400, "true", "false") | fields is_past_search</query>
<earliest>$timerange.earliest$</earliest>
<latest>$timerange.latest$</latest>
<progress>
<condition match="'result.is_past_search'==&quot;true&quot;">
<set token="form.refresh">0</set>
</condition>
<condition match="'result.is_past_search'==&quot;false&quot;">
<unset token="form.refresh"></unset>
</condition>
</progress>
</search>

<!-- ############################# CPU stats ############################# -->

<row>
Expand Down
51 changes: 22 additions & 29 deletions nmon/default/data/ui/views/UI_Nmon_CPU_ALL.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
<earliestTime>-24h</earliestTime>
<latestTime>now</latestTime>
</default>
<!--
Reset the form token changed
-->
<change>
<unset token="form.refresh"></unset>
</change>
</input>

<input type="dropdown" token="timefilter" searchWhenChanged="true">
Expand Down Expand Up @@ -110,29 +104,6 @@
<choice value="fields *">On</choice>
</input>

<!--
This input is an hidden input that intents to smartly configure the auto refresh feature
Assume that if the latest time range is higher or equal than 4 hours in delta with now, the auto refresh should be disabled.
As well, this form will be reset whenever the time range period is modified
-->

<input type="dropdown" token="autorefresh_detection" depends="$hidden_element$" searchWhenChanged="true">
<label>Is past data search ?:</label>
<search>
<query>| stats c | addinfo | eval now=now(), delta_now=now-info_max_time, is_past_search=if(delta_now>=14400, "true", "false") | fields is_past_search</query>
<earliest>$timerange.earliest$</earliest>
<latest>$timerange.latest$</latest>
</search>
<selectFirstChoice>true</selectFirstChoice>
<fieldForLabel>is_past_search</fieldForLabel>
<fieldForValue>is_past_search</fieldForValue>
<change>
<condition value="true">
<set token="form.refresh">0</set>
</condition>
</change>
</input>

<input type="dropdown" token="refresh" searchWhenChanged="true">
<label>Auto-refresh:</label>
<choice value="30s">30 sec</choice>
Expand All @@ -144,6 +115,28 @@

</fieldset>

<!--
Dynamic configuration
The following searches are being used to define various tokens using event handlers
-->

<!-- autorefresh_detection -->

<search id="autorefresh_detection">
<query>| stats c | addinfo | eval now=now(), delta_now=now-info_max_time, is_past_search=if(delta_now>=14400, "true", "false") | fields is_past_search</query>
<earliest>$timerange.earliest$</earliest>
<latest>$timerange.latest$</latest>
<progress>
<condition match="'result.is_past_search'==&quot;true&quot;">
<set token="form.refresh">0</set>
</condition>
<condition match="'result.is_past_search'==&quot;false&quot;">
<unset token="form.refresh"></unset>
</condition>
</progress>
</search>


<!-- Help the user -->

<row rejects="$host$">
Expand Down
50 changes: 21 additions & 29 deletions nmon/default/data/ui/views/UI_Nmon_CPUnn.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
<earliestTime>-24h</earliestTime>
<latestTime>now</latestTime>
</default>
<!--
Reset the form token changed
-->
<change>
<unset token="form.refresh"></unset>
</change>
</input>

<input type="dropdown" token="timefilter" searchWhenChanged="true">
Expand Down Expand Up @@ -131,29 +125,6 @@
<choice value="fields *">On</choice>
</input>

<!--
This input is an hidden input that intents to smartly configure the auto refresh feature
Assume that if the latest time range is higher or equal than 4 hours in delta with now, the auto refresh should be disabled.
As well, this form will be reset whenever the time range period is modified
-->

<input type="dropdown" token="autorefresh_detection" depends="$hidden_element$" searchWhenChanged="true">
<label>Is past data search ?:</label>
<search>
<query>| stats c | addinfo | eval now=now(), delta_now=now-info_max_time, is_past_search=if(delta_now>=14400, "true", "false") | fields is_past_search</query>
<earliest>$timerange.earliest$</earliest>
<latest>$timerange.latest$</latest>
</search>
<selectFirstChoice>true</selectFirstChoice>
<fieldForLabel>is_past_search</fieldForLabel>
<fieldForValue>is_past_search</fieldForValue>
<change>
<condition value="true">
<set token="form.refresh">0</set>
</condition>
</change>
</input>

<input type="dropdown" token="refresh" searchWhenChanged="true">
<label>Auto-refresh:</label>
<choice value="30s">30 sec</choice>
Expand All @@ -165,6 +136,27 @@

</fieldset>

<!--
Dynamic configuration
The following searches are being used to define various tokens using event handlers
-->

<!-- autorefresh_detection -->

<search id="autorefresh_detection">
<query>| stats c | addinfo | eval now=now(), delta_now=now-info_max_time, is_past_search=if(delta_now>=14400, "true", "false") | fields is_past_search</query>
<earliest>$timerange.earliest$</earliest>
<latest>$timerange.latest$</latest>
<progress>
<condition match="'result.is_past_search'==&quot;true&quot;">
<set token="form.refresh">0</set>
</condition>
<condition match="'result.is_past_search'==&quot;false&quot;">
<unset token="form.refresh"></unset>
</condition>
</progress>
</search>

<!-- Help the user -->

<row rejects="$host$">
Expand Down
48 changes: 21 additions & 27 deletions nmon/default/data/ui/views/UI_Nmon_DG.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
<earliestTime>-24h</earliestTime>
<latestTime>now</latestTime>
</default>
<!--
Reset the form token changed
-->
<change>
<unset token="form.refresh"></unset>
</change>
</input>
<input type="dropdown" token="timefilter" searchWhenChanged="true">
<label>Time Filtering:</label>
Expand Down Expand Up @@ -124,27 +118,6 @@
<default>fields *</default>
<choice value="fields *">On</choice>
</input>
<!--
This input is an hidden input that intents to smartly configure the auto refresh feature
Assume that if the latest time range is higher or equal than 4 hours in delta with now, the auto refresh should be disabled.
As well, this form will be reset whenever the time range period is modified
-->
<input type="dropdown" token="autorefresh_detection" depends="$hidden_element$" searchWhenChanged="true">
<label>Is past data search ?:</label>
<search>
<query>| stats c | addinfo | eval now=now(), delta_now=now-info_max_time, is_past_search=if(delta_now>=14400, "true", "false") | fields is_past_search</query>
<earliest>$timerange.earliest$</earliest>
<latest>$timerange.latest$</latest>
</search>
<selectFirstChoice>true</selectFirstChoice>
<fieldForLabel>is_past_search</fieldForLabel>
<fieldForValue>is_past_search</fieldForValue>
<change>
<condition value="true">
<set token="form.refresh">0</set>
</condition>
</change>
</input>
<input type="dropdown" token="refresh" searchWhenChanged="true">
<label>Auto-refresh:</label>
<choice value="30s">30 sec</choice>
Expand All @@ -155,6 +128,27 @@
</input>
</fieldset>

<!--
Dynamic configuration
The following searches are being used to define various tokens using event handlers
-->

<!-- autorefresh_detection -->

<search id="autorefresh_detection">
<query>| stats c | addinfo | eval now=now(), delta_now=now-info_max_time, is_past_search=if(delta_now>=14400, "true", "false") | fields is_past_search</query>
<earliest>$timerange.earliest$</earliest>
<latest>$timerange.latest$</latest>
<progress>
<condition match="'result.is_past_search'==&quot;true&quot;">
<set token="form.refresh">0</set>
</condition>
<condition match="'result.is_past_search'==&quot;false&quot;">
<unset token="form.refresh"></unset>
</condition>
</progress>
</search>

<!-- Help the user -->

<row rejects="$host$">
Expand Down
50 changes: 21 additions & 29 deletions nmon/default/data/ui/views/UI_Nmon_DISKBSIZE.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
<earliestTime>-24h</earliestTime>
<latestTime>now</latestTime>
</default>
<!--
Reset the form token changed
-->
<change>
<unset token="form.refresh"></unset>
</change>
</input>

<input type="dropdown" token="timefilter" searchWhenChanged="true">
Expand Down Expand Up @@ -134,29 +128,6 @@
<choice value="fields *">On</choice>
</input>

<!--
This input is an hidden input that intents to smartly configure the auto refresh feature
Assume that if the latest time range is higher or equal than 4 hours in delta with now, the auto refresh should be disabled.
As well, this form will be reset whenever the time range period is modified
-->

<input type="dropdown" token="autorefresh_detection" depends="$hidden_element$" searchWhenChanged="true">
<label>Is past data search ?:</label>
<search>
<query>| stats c | addinfo | eval now=now(), delta_now=now-info_max_time, is_past_search=if(delta_now>=14400, "true", "false") | fields is_past_search</query>
<earliest>$timerange.earliest$</earliest>
<latest>$timerange.latest$</latest>
</search>
<selectFirstChoice>true</selectFirstChoice>
<fieldForLabel>is_past_search</fieldForLabel>
<fieldForValue>is_past_search</fieldForValue>
<change>
<condition value="true">
<set token="form.refresh">0</set>
</condition>
</change>
</input>

<input type="dropdown" token="refresh" searchWhenChanged="true">
<label>Auto-refresh:</label>
<choice value="30s">30 sec</choice>
Expand All @@ -168,6 +139,27 @@

</fieldset>

<!--
Dynamic configuration
The following searches are being used to define various tokens using event handlers
-->

<!-- autorefresh_detection -->

<search id="autorefresh_detection">
<query>| stats c | addinfo | eval now=now(), delta_now=now-info_max_time, is_past_search=if(delta_now>=14400, "true", "false") | fields is_past_search</query>
<earliest>$timerange.earliest$</earliest>
<latest>$timerange.latest$</latest>
<progress>
<condition match="'result.is_past_search'==&quot;true&quot;">
<set token="form.refresh">0</set>
</condition>
<condition match="'result.is_past_search'==&quot;false&quot;">
<unset token="form.refresh"></unset>
</condition>
</progress>
</search>

<!-- Help the user -->

<row rejects="$host$">
Expand Down

0 comments on commit a638721

Please sign in to comment.