Commit graph

45 commits

Author SHA1 Message Date
Alfredo Cardigliano
a03c2158d8 Remove useless chart with duplicated info 2020-07-01 11:54:25 +02:00
emanuele-f
aedf348534 Move interface timeseries prefs to the global config
Addresses #3979
2020-05-27 13:48:27 +02:00
emanuele-f
c17ddb486e Ensure monotonic time in uSecDiffPeriodicActivityBody 2020-03-05 17:09:40 +01:00
emanuele-f
1c7dabf247 Pass current periodic activity time from C
This prevents possible inconsistencies between the C and lua time
2020-03-05 17:09:40 +01:00
Simone Mainardi
3405b7184e Writes new_flow timeseries every minute (not every second)
Implements #3456
2020-02-28 15:35:16 +01:00
Simone Mainardi
a1905609a2 Prevents writing ZMQ timeseries for non-ZMQ interfaces
Addresses #3456
2020-02-28 15:11:18 +01:00
Simone Mainardi
474fe19e07 Writes CPU load every 5 secs (/proc/loadavg doesn't update faster)
Additional fix for #3465
2020-02-28 11:55:26 +01:00
emanuele-f
b194643a18 Join exported and dropped flows into a single timeseries 2020-02-27 12:15:53 +01:00
emanuele-f
ea4f936d07 Join interface packets and drops into a single timeseries 2020-02-27 12:09:43 +01:00
emanuele-f
8abdb926cd Handle /proc/net/dev counters wrapping on 32bit platforms.
Fixes #3398
2020-02-25 16:56:58 +01:00
emanuele-f
7c534a557c Add the is_critical_ts flag to force timeseries write 2020-02-19 15:31:36 +01:00
Luca Deri
170bc60f19 Updated (C) 2020-01-08 23:52:51 +01:00
Simone Mainardi
b44de6e18d Implements discarded probing traffic counters and timeseries 2019-12-31 16:01:24 +01:00
Simone Mainardi
c873aee41b Implement counter and chart for new flows per second 2019-12-27 12:29:55 +01:00
emanuele-f
a3432e00e8 Implement ntopng plugins
Plugins are a convenient way to group together related lua scripts.
Their primary use case is to group user scripts and their alert/status
definition.
The builtin ntopng user scripts and definitions are now
packed into plugins directories. In future, we will support loading of
user created plugins.
Plugins are loaded at startup into some runtime directories and then
used. Other changes provided by this commit include:

- Add sample flow logger plugin
- Initial support for system user scripts
- Rename edge to threshold
- Migrate system probes to user scripts/plugins
- Migrate scripts to more explicit alerts_api.checkThresholdAlert api
2019-12-10 09:25:57 +01:00
Simone Mainardi
15e17a801a Implements per-state hash entry counters and writes them to ts 2019-10-23 13:09:02 +02:00
Simone Mainardi
3950c3ddc8 Support for 5-min timeseries resolution in InfluxDB 2019-10-15 15:06:20 +02:00
Simone Mainardi
165a53d18e Adds timeseries of ZMQ messages received and dropped 2019-09-10 19:49:16 +02:00
Simone Mainardi
24cf71a70d Parses and charts UDP socket drops from nProbe 2019-08-30 12:54:41 +02:00
emanuele-f
1d6d52b4ea Rework system probes (now called system scripts) 2019-06-07 11:31:44 +02:00
emanuele-f
791afdbaca Implement CPU load chart 2019-06-06 19:20:11 +02:00
Simone Mainardi
6215a0fe03 Fixes wrong traffic peaks during startup with nprobe_mini 2019-06-03 15:21:13 +02:00
emanuele-f
e182e726bb Remove test command 2019-05-13 13:11:54 +02:00
emanuele-f
5031876d9c Fix timestamp read in second.lua 2019-05-13 12:52:53 +02:00
emanuele-f
849d691649 Improve second activity alignment 2019-05-13 12:32:48 +02:00
Simone Mainardi
07eaeb2bcd Fixes received ZMQ flows wrongly stored as gauge 2019-01-23 17:35:13 +01:00
Simone Mainardi
aac5c792b7 Fixes timeseries 'missing metric' errors 2019-01-23 17:30:46 +01:00
Simone Mainardi
fa3d346f58 Adds historical charts of flow collection drops 2019-01-23 16:16:55 +01:00
emanuele-f
467cbf9904 Implement ingress/egress traffic charts
Closes #1452
2019-01-10 16:12:50 +01:00
emanuele-f
08a8c67966 Implement interface in/out stats read from proc 2019-01-10 12:35:07 +01:00
emanuele-f
e3952dbb48 Add exported/dropped flows/sec timeseries
Implements #2300
2019-01-09 16:15:40 +01:00
emanuele-f
019665c111 Fix interface timeseries being written even if the preference is disabled 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 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
Simone Mainardi
c382fd4631 Adds nEdge netfilter stats rrds 2018-06-15 00:34:26 +02:00
emanuele-f
bbfb40cc9f Add user members management page in nedge 2018-06-06 20:11:47 +02:00
emanuele-f
8c104817a1 Optimize timeseries schemas 2018-06-01 11:16:57 +02:00
Luca Deri
f1b50009f6 Added PERIODIC_DEBUG for debugging purposes 2018-05-29 08:11:22 +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
Luca
c6faed3615 Removed unnecessary statement from second.lua
Minor code cleanup
2018-04-17 17:30:36 +02:00
Luca Deri
f0c936c368 Updated (C) to 2018 2018-03-22 21:59:42 +01:00
emanuele-f
8aa19c0136 Little fixes 2017-11-27 12:57:14 +01:00
emanuele-f
417d40a78e Separate system-wide scripts from per-interface scripts 2017-11-23 19:15:12 +01:00
Renamed from scripts/callbacks/second.lua (Browse further)