Skip to content

Commit

Permalink
version 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhemmarchand committed Sep 27, 2018
1 parent f3139e4 commit df3d529
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
9 changes: 9 additions & 0 deletions DA-ITSI-TELEGRAF-OS/appserver/static/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
display: inline !important;
}

/* reduce size of the token input panel */
.input-link label{
display: none !important;
}

.splunk-choice-input-message{
display: none !important;
}

/* Increase the default max-width for links */
.btn-pill {
max-width: 600px !important;
Expand Down
2 changes: 1 addition & 1 deletion DA-ITSI-TELEGRAF-OS/default/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ is_configured = 0

[launcher]
author = Guilhem Marchand
version = 1.0.3
version = 1.0.4
description = ITSI module for Influxdata Telegraf Operating Systems

[ui]
Expand Down
16 changes: 8 additions & 8 deletions DA-ITSI-TELEGRAF-OS/default/savedsearches.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ request.ui_dispatch_view = search
#

[DA-ITSI-TELEGRAF-OS-Host_Search_linux]
search = | mstats latest(_value) as value where `telegraf_index` metric_name="system.n_cpus" OR metric_name="mem.total" OR metric_name="swap.total" host=$host$ by metric_name\
search = | mstats latest(_value) as value where `telegraf_index` metric_name="system.n_cpus" OR metric_name="mem.total" OR metric_name="swap.total" host=$host$ by host, metric_name\
| eval nb_cpus=case(metric_name="system.n_cpus", value), swap_total=case(metric_name="swap.total", value/1024/1024), mem_total=case(metric_name="mem.total", value/1024/1024)\
| stats first(nb_cpus) as nb_cpus, first(mem_total) as mem_total, first(swap_total) as swap_total\
| stats first(nb_cpus) as nb_cpus, first(mem_total) as mem_total, first(swap_total) as swap_total by host\
| foreach *_total [ eval <<FIELD>> = round('<<FIELD>>', 0) ]\
| `telegraf-get-closest-disk-unit(mem_total)`\
| eval mem_total = mem_total . unit_to_use, swap_total = swap_total . unit_to_use, family="Linux"\
| fields family, nb_cpus, mem_total, swap_total | eval entity_summary="family:" . family . " nb_cpus:" . nb_cpus . " mem_total:" . mem_total . " swap_total:" . swap_total\
| fields entity_summary | makemv entity_summary | rex field=entity_summary mode=sed "s/([MGTP])/ \1/g"
| fields host, family, nb_cpus, mem_total, swap_total | eval entity_summary="machine:" . host . " family:" . family . " nb_cpus:" . nb_cpus . " mem_total:" . mem_total . " swap_total:" . swap_total\
| fields entity_summary | makemv entity_summary | rex field=entity_summary mode=sed "s/([MGTP]B)/ \1/g"
request.ui_dispatch_app = itsi
request.ui_dispatch_view = search

Expand All @@ -85,15 +85,15 @@ request.ui_dispatch_view = search
#

[DA-ITSI-TELEGRAF-OS-Host_Search_windows]
search = | mstats latest(_value) as value where `telegraf_index` metric_name=win_cpu.Percent_Idle_Time instance!=_Total host=$host$ by instance\
search = | mstats latest(_value) as value where `telegraf_index` metric_name=win_cpu.Percent_Idle_Time instance!=_Total host=$host$ by host, instance\
| stats dc(instance) as nb_cpus\
| appendcols [ | mstats latest(_value) as mem_total where `telegraf_index` metric_name="mem.total" host=$host$\
| appendcols [ | mstats latest(_value) as mem_total where `telegraf_index` metric_name="mem.total" host=$host$ by host\
| eval mem_total=round(mem_total/1024/1024, 0)\
| `telegraf-get-closest-disk-unit(mem_total)` | eval mem_total = mem_total . unit_to_use ]\
| fillnull value="NA" mem_total\
| eval family="Windows"\
| fields family, nb_cpus, mem_total | eval entity_summary="family:" . family . " nb_cpus:" . nb_cpus . " mem_total:" . mem_total\
| fields entity_summary | makemv entity_summary | rex field=entity_summary mode=sed "s/([MGTP])/ \1/g"
| fields host, family, nb_cpus, mem_total | eval entity_summary="machine:" . host . " family:" . family . " nb_cpus:" . nb_cpus . " mem_total:" . mem_total\
| fields entity_summary | makemv entity_summary | rex field=entity_summary mode=sed "s/([MGTP]B)/ \1/g"
request.ui_dispatch_app = itsi
request.ui_dispatch_view = search

Expand Down
Binary file removed DA-ITSI-TELEGRAF-OS_103.tgz
Binary file not shown.
Binary file added DA-ITSI-TELEGRAF-OS_104.tgz
Binary file not shown.
8 changes: 7 additions & 1 deletion docs/releasenotes.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
Release notes
#############

Version 1.0.4
=============

- fix: add machine name in entity summary display
- fix: reduce input token panel size in views

Version 1.0.3
=============
=============

- fix: missing by clause statement in diskio KPI basesearch for Linux generates wrong results
- fix: fixed remaining explicit calls to telegraf index instead of index macro
Expand Down

0 comments on commit df3d529

Please sign in to comment.