Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #62 from guilhemmarchand/version_113
Browse files Browse the repository at this point in the history
Version 1.1.3
  • Loading branch information
guilhemmarchand committed Jan 2, 2020
2 parents 08201fd + 2a9c94a commit 0aeb271
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 13 deletions.
8 changes: 8 additions & 0 deletions docs/releasenotes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Release notes
#############

Version 1.1.3
=============

- feature: Creation of an additional blue status, used for data hosts and metric hosts managed in a logical group when logical group monitoring conditions are met but entity is not green
- fix: Improved dynamic icon messages (reference the current latency when state is red)
- change: Increased default tolerance for data indexed in the future detection macro
- change: limit embedded charts searches overhead for data sources (do not split by host which limits accuracy but slightly improves searches performance in large environments)

Version 1.1.2
=============

Expand Down
2 changes: 1 addition & 1 deletion trackme/default/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ label = TrackMe
[launcher]
author = Guilhem Marchand
description = Easy data tracking system for Splunk admins
version = 1.1.2
version = 1.1.3
35 changes: 31 additions & 4 deletions trackme/default/data/ui/html/TrackMe.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@
margin-left: 5px;
}

span.title_blue {
background: #89cff0;
padding: 0.3em 1.5em;
font-weight: 600;
position: relative;
border-radius: 5px;
margin-left: 5px;
}

span.title_green {
background: #77dd77;
padding: 0.3em 1.5em;
Expand Down Expand Up @@ -5564,7 +5573,7 @@ <h2 class="panel-title">Search for audit changes:</h2>
var searchChartLag = new SearchManager({
"id": "searchChartLag",
"sample_ratio": 1,
"search": "| `tstats` count max(_indextime) as indextime where index=\"$tk_data_index$\" sourcetype=\"$tk_data_sourcetype$\" by _time, index, sourcetype, host span=1s | eval delta=(indextime-_time) | timechart span=$modalTime.span$ sum(count) as events_count, avg(delta) as avg_lag_sec",
"search": "| `tstats` count latest(_indextime) as indextime where index=\"$tk_data_index$\" sourcetype=\"$tk_data_sourcetype$\" by _time, index, sourcetype span=1s | eval delta=(indextime-_time) | timechart span=$modalTime.span$ sum(count) as events_count, avg(delta) as avg_lag_sec",
"status_buckets": 0,
"earliest_time": "$modalTime.earliest$",
"cancelOnUnload": true,
Expand All @@ -5586,7 +5595,7 @@ <h2 class="panel-title">Search for audit changes:</h2>
var searchSingleLag = new SearchManager({
"id": "searchSingleLag",
"sample_ratio": 1,
"search": "| `tstats` count max(_indextime) as indextime where index=\"$tk_data_index$\" sourcetype=\"$tk_data_sourcetype$\" by _time, index, sourcetype, host span=1s | eval delta=(indextime-_time) | stats perc95(delta) as perc95_lag, avg(delta) as avg_lag",
"search": "| `tstats` count latest(_indextime) as indextime where index=\"$tk_data_index$\" sourcetype=\"$tk_data_sourcetype$\" by _time, index, sourcetype span=1s | eval delta=(indextime-_time) | stats perc95(delta) as perc95_lag, avg(delta) as avg_lag",
"status_buckets": 0,
"earliest_time": "$modalTime.earliest$",
"cancelOnUnload": true,
Expand Down Expand Up @@ -5628,7 +5637,7 @@ <h2 class="panel-title">Search for audit changes:</h2>
var searchSingleLagHost = new SearchManager({
"id": "searchSingleLagHost",
"sample_ratio": 1,
"search": "| tstats count latest(_indextime) as indextime where index=* host=\"$tk_data_host$\" `trackme_tstats_main_filter` `trackme_get_idx_whitelist(trackme_data_host_monitoring_whitelist_index, data_index)` `apply_data_host_blacklists_data_retrieve` by _time, index, sourcetype, host span=1s | eval delta=(indextime-_time) | stats perc95(delta) as perc95_lag, avg(delta) as avg_lag",
"search": "| tstats count latest(_indextime) as indextime where index=* host=\"$tk_data_host$\" `trackme_tstats_main_filter` `trackme_get_idx_whitelist(trackme_data_host_monitoring_whitelist_index, data_index)` `apply_data_host_blacklists_data_retrieve` by _time, index, sourcetype span=1s | eval delta=(indextime-_time) | stats perc95(delta) as perc95_lag, avg(delta) as avg_lag",
"status_buckets": 0,
"earliest_time": "$modalTimeHost.earliest$",
"cancelOnUnload": true,
Expand Down Expand Up @@ -8933,6 +8942,8 @@ <h2 class="panel-title">Search for audit changes:</h2>
setToken("tk_data_source_state_class", TokenUtils.replaceTokenNames("title_green", _.extend(submittedTokenModel.toJSON(), e.data)));
} else if (tk_data_source_state == "orange") {
setToken("tk_data_source_state_class", TokenUtils.replaceTokenNames("title_orange", _.extend(submittedTokenModel.toJSON(), e.data)));
} else if (tk_data_source_state == "blue") {
setToken("tk_data_source_state_class", TokenUtils.replaceTokenNames("title_blue", _.extend(submittedTokenModel.toJSON(), e.data)));
} else if (tk_data_source_state == "red") {
setToken("tk_data_source_state_class", TokenUtils.replaceTokenNames("title_red", _.extend(submittedTokenModel.toJSON(), e.data)));
}
Expand Down Expand Up @@ -9270,6 +9281,8 @@ <h2 class="panel-title">Search for audit changes:</h2>
setToken("tk_data_host_state_class", TokenUtils.replaceTokenNames("title_green", _.extend(submittedTokenModel.toJSON(), e.data)));
} else if (tk_data_host_state == "orange") {
setToken("tk_data_host_state_class", TokenUtils.replaceTokenNames("title_orange", _.extend(submittedTokenModel.toJSON(), e.data)));
} else if (tk_data_host_state == "blue") {
setToken("tk_data_host_state_class", TokenUtils.replaceTokenNames("title_blue", _.extend(submittedTokenModel.toJSON(), e.data)));
} else if (tk_data_host_state == "red") {
setToken("tk_data_host_state_class", TokenUtils.replaceTokenNames("title_red", _.extend(submittedTokenModel.toJSON(), e.data)));
}
Expand Down Expand Up @@ -9394,6 +9407,8 @@ <h2 class="panel-title">Search for audit changes:</h2>
setToken("tk_metric_host_state_class", TokenUtils.replaceTokenNames("title_green", _.extend(submittedTokenModel.toJSON(), e.data)));
} else if (tk_metric_host_state == "orange") {
setToken("tk_metric_host_state_class", TokenUtils.replaceTokenNames("title_orange", _.extend(submittedTokenModel.toJSON(), e.data)));
} else if (tk_metric_host_state == "blue") {
setToken("tk_metric_host_state_class", TokenUtils.replaceTokenNames("title_blue", _.extend(submittedTokenModel.toJSON(), e.data)));
} else if (tk_metric_host_state == "red") {
setToken("tk_metric_host_state_class", TokenUtils.replaceTokenNames("title_red", _.extend(submittedTokenModel.toJSON(), e.data)));
}
Expand Down Expand Up @@ -9431,7 +9446,7 @@ <h2 class="panel-title">Search for audit changes:</h2>
"id": "elementHostChartMetricHost",
"charting.chart": "pie",
"charting.drilldown": "all",
"charting.fieldColors": "{\"red\": 0xff6961, \"orange\": 0xffb347, \"green\": 0x77dd77}",
"charting.fieldColors": "{\"red\": 0xff6961, \"orange\": 0xffb347, \"blue\": 0x89cff0, \"green\": 0x77dd77}",
"height": "180",
"resizable": true,
"managerid": "searchHostChartMetricHost",
Expand Down Expand Up @@ -11314,6 +11329,10 @@ <h2 class="panel-title">Search for audit changes:</h2>
"label": "Green",
"value": "Green"
},
{
"label": "Blue",
"value": "Blue"
},
{
"label": "Orange",
"value": "Orange"
Expand Down Expand Up @@ -11537,6 +11556,10 @@ <h2 class="panel-title">Search for audit changes:</h2>
"label": "Green",
"value": "Green"
},
{
"label": "Blue",
"value": "Blue"
},
{
"label": "Orange",
"value": "Orange"
Expand Down Expand Up @@ -11573,6 +11596,10 @@ <h2 class="panel-title">Search for audit changes:</h2>
"label": "Green",
"value": "Green"
},
{
"label": "Blue",
"value": "Blue"
},
{
"label": "Orange",
"value": "Orange"
Expand Down

0 comments on commit 0aeb271

Please sign in to comment.