Commit graph

33 commits

Author SHA1 Message Date
emanuele-f
97a280e14f Add partial sums in timeseries topk 2018-09-25 11:56:13 +02:00
emanuele-f
134bc7e373 Fix RRD total with sampled series 2018-09-24 18:26:30 +02:00
emanuele-f
b604288c9b Avoid returning topk items with zero bytes 2018-09-24 16:40:07 +02:00
emanuele-f
e64c2c8fd7 Fix RRD totals 2018-09-24 16:25:21 +02:00
Simone Mainardi
bf43aceb9c Refactors data delete_data_utils for the use with nEdge 2018-09-20 10:47:41 +02:00
Simone Mainardi
409c8f50ab Checks return value upon RRD directory deletion 2018-09-20 08:54:08 +02:00
emanuele-f
ffe2c629bc Implement timeseries cleanup
Closes #1940
2018-09-11 17:16:56 +02:00
emanuele-f
42dcd75485 Fix invalid mac addresses graphs path 2018-09-11 12:30:05 +02:00
emanuele-f
91ae4c5172 Implement experimental hourly deltas writes
redis-cli set "ntopng.prefs.enable_ts_deltas_writes" "1"
2018-09-07 17:12:18 +02:00
emanuele-f
0004e08191 Add experimental support for 5sec granularity for host timeseries
To enable it (only on *InfluxDB* right now):

- uncomment HOST_NUM_TIMESERIES_POINTS in ntop_defines.h
- run `redis-cli set ntopng.prefs.30_sec_dump 1` and restart ntopng
2018-08-23 18:10:46 +02:00
emanuele-f
354dd697c0 Add max value checks for traffic and packets metrics 2018-08-20 16:19:01 +02:00
emanuele-f
102da47f26 Add initial point to the graph to match the selected time frame 2018-08-16 17:55:31 +02:00
emanuele-f
6ba093872f Fix multiple alignment issues with timeseries 2018-08-16 17:06:38 +02:00
emanuele-f
cacbdaa9e7 Fix compatibility with ntopng 3.4 RRD format 2018-08-13 18:41:45 +02:00
emanuele-f
20e8b4aaca Implement getLatestTimestamp API 2018-08-10 18:54:30 +02:00
emanuele-f
b2107b6f36 Move influxdb data export into driver api 2018-08-10 18:54:30 +02:00
emanuele-f
303d36b382 Fix occasional RRD error in topk 2018-08-02 18:03:17 +02:00
emanuele-f
ffd6d9ac9f Add past period series for graphical comparison 2018-07-31 17:43:29 +02:00
Simone Mainardi
0b86f17a21 Prevents RRD files exception on fresh ntopng installs
Prevents

25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/SSL.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/SSL.rrd, AVERAGE): is the RRD corrupted perhaps?
25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags
25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/HTTP.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/HTTP.rrd, AVERAGE): is the RRD corrupted perhaps?
25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags
25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/SSH.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/SSH.rrd, AVERAGE): is the RRD corrupted perhaps?
25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags
25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/Unknown.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/Unknown.rrd, AVERAGE): is the RRD corrupted perhaps?
25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags
25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/sFlow.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/sFlow.rrd, AVERAGE): is the RRD corrupted perhaps?
25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags
25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/DNS.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/DNS.rrd, AVERAGE): is the RRD corrupted perhaps?
25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags
25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/ICMP.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/ICMP.rrd, AVERAGE): is the RRD corrupted perhaps?
25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags
2018-07-25 13:26:12 +02:00
Simone Mainardi
d14fd57858 Adapts old bytes and packets rrd RRAs to the new format
The new timeseries library now transparently tries and uses old RRA names
for bytes and packets.

Fixes #1882
2018-07-25 13:10:34 +02:00
emanuele-f
efaabaa2c6 Fix swapped columns in RRD driver 2018-07-20 20:02:46 +02:00
emanuele-f
3612c64f91 Fix nil data_type and add series consinstency check 2018-07-20 15:38:13 +02:00
emanuele-f
4cafac6a81 Fix InfluxDB charts statistics 2018-07-20 14:39:17 +02:00
emanuele-f
667bc2e8c6 Move ninetififthPercentile to common utilities 2018-07-20 14:39:17 +02:00
Emanuele Faranda
4cbe45a948
New pro charts features and timeseries api (#1865)
* Integrate modified nvd3 library with zoom and multicharts working support

* Fix count in RRD driver

* Initial chart ajax migration

* Update nvd3 with zoom stack support

* Fix RRD listSeries with directories

* Work in progress graphs

* Compatibility fix

* Initial support for schema based api

* Add missing script

* Fix listSeries for existance check

* Implement topk timseries api

* Implement topk queries and fix labels and formats

* Migrate interface top sender and receivers

* Migrate charts to new API

* Move timeseries list for menu inside respective scripts

* Add support for extended labels

* Fix missing fields while chaning graph resolution

Also Rename drawRRD in drawGraphs

* Fix historical tabs

* Add missing time fence in influx topk

* Add graphs support for custom statistics visualization

* Initial support for graphs statistics footer

* Implement statistics in single graphs for RRD driver

* Move sampling function into the driver and fix graph statistics

* Fix max/min value offset

* Implement influxdb sampling use built-in FILL

* Implement stats and total serie in influxdb driver

* Update nvd3 with multiChart fixes

* Update nvd3 with new multiChart fixes

* RRD driver fixes

* Move metrics type from single metric to schema

* Handle ajax errors and empty data in charts

* Fix flow device interfaces graphs

* Use timeserie label as timeseries dropdown text

* Implement topk aggregation into one data serie

* ts_utils module now provides all the schemas

* Migrate ntop.exist(rrd) to ts_utils.exist

* Fix timeseries dropdown label

* L4 protos fixes for charts

* Migrate getProtoVolume to new API

* Integrate nvd3 fix for tooltip position

* Initial community graphs migration to timseries API

* Fix community timeseries dropdown and historical tabs

* Hide total serie by default

* Remove l4 protos from topk charts
2018-07-18 15:09:19 +02:00
emanuele-f
5d50622341 Use schema name in timeseries API 2018-06-27 17:18:23 +02:00
emanuele-f
39a7375727 Add start_time filter in ts_utils.listSeries 2018-06-27 16:47:33 +02:00
emanuele-f
1f7cbfd13e Implement ts_utils.listSeries 2018-06-26 18:30:12 +02:00
emanuele-f
84c32d499b Implement experimental timeseries query API 2018-06-26 12:07:09 +02:00
Luca Deri
203404df5b Added changes to seamlessly use LuaJIT (default) or the standard (non JIT) Lua 2018-06-12 23:05:30 +02:00
emanuele-f
2f89d21b36 Remove lua_utils dependency from timeseries 2018-06-01 10:41:54 +02:00
emanuele-f
42083f1865 Rework influxdb exporter 2018-05-25 13:52:06 +02:00
emanuele-f
cb56b5d5ec Implement layer above RRD for timeseries storage 2018-05-25 10:04:18 +02:00