This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from guilhemmarchand/version_116
Version 1.1.6
- Loading branch information
Showing
13 changed files
with
3,177 additions
and
1,020 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
<form> | ||
<label>TrackMe - Quality Of Service Auditing - SLA compliance reporting</label> | ||
<description>The SLA percentage represents the percentage of time an object has spent in green state, which complies with monitoring rules and quality of service</description> | ||
|
||
<search id="baseSearch"> | ||
<query>| `trackme_get_sla($object_category$,$object$,$object_freetext$,$priority$)`</query> | ||
<earliest>-24h@h</earliest> | ||
<latest>now</latest> | ||
</search> | ||
|
||
<search id="percent_main" base="baseSearch"> | ||
<query>| where percent_sla>0 | ||
| stats avg(percent_sla) as average_percent_sla by object_category</query> | ||
<earliest>-24h@h</earliest> | ||
<latest>now</latest> | ||
</search> | ||
|
||
<fieldset submitButton="false"></fieldset> | ||
|
||
<row> | ||
<panel depends="$show_single_data_source$"> | ||
<single> | ||
<search base="percent_main"> | ||
<query>where object_category="data_source" | fields average_percent_sla</query> | ||
</search> | ||
<option name="colorMode">none</option> | ||
<option name="drilldown">none</option> | ||
<option name="numberPrecision">0.00</option> | ||
<option name="rangeColors">["0xdc4e41","0xf1813f","0x53a051"]</option> | ||
<option name="rangeValues">[50,90]</option> | ||
<option name="refresh.display">progressbar</option> | ||
<option name="underLabel">data_source SLA percentage (average percentage spent in green state)</option> | ||
<option name="unit">%</option> | ||
<option name="useColors">1</option> | ||
</single> | ||
</panel> | ||
<panel depends="$show_single_data_host$"> | ||
<single> | ||
<search base="percent_main"> | ||
<query>where object_category="data_host" | fields average_percent_sla</query> | ||
</search> | ||
<option name="colorMode">none</option> | ||
<option name="drilldown">none</option> | ||
<option name="numberPrecision">0.00</option> | ||
<option name="rangeColors">["0xdc4e41","0xf1813f","0x53a051"]</option> | ||
<option name="rangeValues">[50,90]</option> | ||
<option name="refresh.display">progressbar</option> | ||
<option name="underLabel">data_host SLA percentage (average percentage spent in green state)</option> | ||
<option name="unit">%</option> | ||
<option name="useColors">1</option> | ||
</single> | ||
</panel> | ||
<panel depends="$show_single_metric_host$"> | ||
<single> | ||
<search base="percent_main"> | ||
<query>where object_category="metric_host" | fields average_percent_sla</query> | ||
</search> | ||
<option name="colorMode">none</option> | ||
<option name="drilldown">none</option> | ||
<option name="numberPrecision">0.00</option> | ||
<option name="rangeColors">["0xdc4e41","0xf1813f","0x53a051"]</option> | ||
<option name="rangeValues">[50,90]</option> | ||
<option name="refresh.display">progressbar</option> | ||
<option name="underLabel">metric_host SLA percentage (average percentage spent in green state)</option> | ||
<option name="unit">%</option> | ||
<option name="useColors">1</option> | ||
</single> | ||
</panel> | ||
</row> | ||
<row> | ||
<panel> | ||
<title>Drilldown info: click on a row to open detailed history of this object</title> | ||
<input type="dropdown" token="object_category" searchWhenChanged="true"> | ||
<label>object_category</label> | ||
<choice value="*">ANY</choice> | ||
<choice value="data_source">data_source</choice> | ||
<choice value="data_host">data_host</choice> | ||
<choice value="metric_host">metric_host</choice> | ||
<default>*</default> | ||
<initialValue>*</initialValue> | ||
<change> | ||
<condition value="data_source"> | ||
<set token="show_single_data_source">true</set> | ||
<unset token="show_single_data_host"></unset> | ||
<unset token="show_single_metric_host"></unset> | ||
</condition> | ||
<condition value="data_host"> | ||
<unset token="show_single_data_source"></unset> | ||
<set token="show_single_data_host">true</set> | ||
<unset token="show_single_metric_host"></unset> | ||
</condition> | ||
<condition value="metric_host"> | ||
<unset token="show_single_data_source"></unset> | ||
<unset token="show_single_data_host"></unset> | ||
<set token="show_single_metric_host">true</set> | ||
</condition> | ||
<condition value="*"> | ||
<set token="show_single_data_source">true</set> | ||
<set token="show_single_data_host">true</set> | ||
<set token="show_single_metric_host">true</set> | ||
</condition> | ||
</change> | ||
</input> | ||
<input type="text" token="object_freetext" searchWhenChanged="true"> | ||
<label>object: (free text filter)</label> | ||
<default>*</default> | ||
<initialValue>*</initialValue> | ||
</input> | ||
<input type="dropdown" token="object" searchWhenChanged="true"> | ||
<label>object</label> | ||
<fieldForLabel>object</fieldForLabel> | ||
<fieldForValue>object</fieldForValue> | ||
<search> | ||
<query>| `trackme_get_sla_root` | ||
| where isnotnull(monitored_state) AND monitored_state="enabled" AND last_time_seen>=relative_time(now(), "-15d@d") | ||
| search object_category=$object_category$ object=$object_freetext$ | ||
| stats count by object | ||
| dedup object | ||
| sort limit=0 object</query> | ||
</search> | ||
<choice value="*">ANY</choice> | ||
<default>*</default> | ||
<initialValue>*</initialValue> | ||
</input> | ||
<input type="dropdown" token="priority" searchWhenChanged="true"> | ||
<label>priority</label> | ||
<choice value="*">ANY</choice> | ||
<choice value="low">low</choice> | ||
<choice value="medium">medium</choice> | ||
<choice value="high">high</choice> | ||
<default>*</default> | ||
<initialValue>*</initialValue> | ||
</input> | ||
<table> | ||
<search base="baseSearch"> | ||
<query></query> | ||
</search> | ||
<option name="count">20</option> | ||
<option name="drilldown">row</option> | ||
<format type="color" field="percent_sla"> | ||
<colorPalette type="list">[#ff6961,#ff6961,#ffb347,#77dd77]</colorPalette> | ||
<scale type="threshold">0,75,90</scale> | ||
</format> | ||
<drilldown> | ||
<link target="_blank"> | ||
<![CDATA[ | ||
/app/trackme/search?q=| `trackme_get_sla($row.object$,$row.object_category$)` | ||
]]> | ||
</link> | ||
</drilldown> | ||
</table> | ||
</panel> | ||
</row> | ||
</form> |
Oops, something went wrong.