Skip to content

Commit

Permalink
Version 1.0.3
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
guilhemmarchand committed Sep 26, 2018
1 parent fa0ced7 commit b597809
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
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.2
version = 1.0.3
description = ITSI module for Influxdata Telegraf Operating Systems

[ui]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
<table id="tablebar">
<title>file-systems usage</title>
<search depends="$chart1$">
<query>| mstats latest(_value) as value where index="telegraf" metric_name=disk.used OR metric_name=disk.total OR metric_name=disk.used_percent `devices_exclusions` host=$host$ by metric_name, path
<query>| mstats latest(_value) as value where `telegraf_index` metric_name=disk.used OR metric_name=disk.total OR metric_name=disk.used_percent `devices_exclusions` host=$host$ by metric_name, path
| eval {metric_name}=value
| stats first(disk.*) as "disk.*" by path
| eval "disk.total"=round(((('disk.total' / 1024) / 1024) / 1024),2), used_pct=round('disk.used_percent',2)
Expand Down Expand Up @@ -1554,7 +1554,7 @@
<title>Storage usage (GB) prediction for next 3 months</title>
<search depends="$chart10$">
<query>
| mstats latest(_value) as value where index="telegraf" metric_name=disk.used OR metric_name=disk.total `devices_exclusions` host=$host$ by metric_name, path span=1d
| mstats latest(_value) as value where `telegraf_index` metric_name=disk.used OR metric_name=disk.total `devices_exclusions` host=$host$ by metric_name, path span=1d
| eval {metric_name}=value
| stats first(disk.used) as disk.used, first(disk.total) as disk.total by _time, path
| stats sum(disk.used) as used, sum(disk.total) as total by _time
Expand Down
4 changes: 2 additions & 2 deletions DA-ITSI-TELEGRAF-OS/default/itsi_kpi_base_search.conf
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ title = DA-ITSI-TELEGRAF-OS:Performance.CPU
[DA-ITSI-TELEGRAF-OS_Performance.Storage.usage]
alert_lag = 30
alert_period = 1
base_search = | mstats latest(_value) as value where index="telegraf" metric_name=disk.used_percent OR metric_name=disk.inodes_used OR metric_name=disk.inodes_total `devices_exclusions` by metric_name, host, path span=1s\
base_search = | mstats latest(_value) as value where `telegraf_index` metric_name=disk.used_percent OR metric_name=disk.inodes_used OR metric_name=disk.inodes_total `devices_exclusions` by metric_name, host, path span=1s\
| eval {metric_name}=value\
| stats first(disk.*) as "disk_*" by _time, host, path\
| eval disk_inodes_used_percent=(disk_inodes_used/disk_inodes_total)*100\
Expand Down Expand Up @@ -441,7 +441,7 @@ alert_period = 1
base_search = | mstats latest(_value) as value where `telegraf_index` metric_name=diskio.io_time OR metric_name=diskio.iops_in_progress OR metric_name=diskio.read_bytes OR metric_name=diskio.write_bytes OR metric_name=diskio.read_time OR metric_name=diskio.write_time OR metric_name=diskio.reads OR metric_name=diskio.writes by metric_name, host, name span=1s\
| eval {metric_name}=value\
| stats first(diskio.*) as "*_counter" by _time, host, name\
| streamstats current=f last(*_counter) as "*_prev" by name\
| streamstats current=f last(*_counter) as "*_prev" by host, name\
| eval io_time=((io_time_counter-io_time_prev)), iops_in_progress=((iops_in_progress_counter-iops_in_progress_prev)), read_bytes=((read_bytes_counter-read_bytes_prev)/10000000), write_bytes=((write_bytes_counter-write_bytes_prev)/10000000), read_time=(read_time_counter-read_time_prev), write_time=(write_time_counter-write_time_prev), reads=(reads_counter-reads_prev), writes=(writes_counter-writes_prev)\
| where NOT (iops_in_progress<0) AND NOT (io_time<0) AND NOT (read_bytes<0) AND NOT (write_bytes<0) AND NOT (read_time<0) AND NOT (write_time<0) AND NOT (reads<0) AND NOT (writes<0)\
| bucket _time span=1m\
Expand Down

0 comments on commit b597809

Please sign in to comment.