Commit graph

278 commits

Author SHA1 Message Date
emanuele-f
1d248331f6 Implement optimized exists query in InfluxDB
This avoids returning too much results when using standard listSeries
2019-09-05 16:02:20 +02:00
Simone Mainardi
f9a8ca8002 Uses getStatsUpdateFreq as min ts step for non-packet interfaces 2019-09-05 14:31:04 +02:00
emanuele-f
1443d46a28 Little fix for commit 7bf8b8b1e5 2019-09-05 11:30:35 +02:00
emanuele-f
7bf8b8b1e5 Use insertion_step when creating RRD files 2019-09-05 10:59:10 +02:00
Simone Mainardi
2e67a69cb7 Implements redis health and keys used monitoring 2019-08-30 16:19:33 +02:00
Simone Mainardi
24cf71a70d Parses and charts UDP socket drops from nProbe 2019-08-30 12:54:41 +02:00
emanuele-f
1032af0d8f Add network engage_alerts timeseries 2019-08-21 17:07:58 +02:00
emanuele-f
69cd896a9f Implement engaged alerts and flow alerts timeseries 2019-08-21 16:57:14 +02:00
Simone Mainardi
3a5de882fe Fixes lua nil-call exception upon InfluxDB errors
Fixes
WARNING: Script failure [/home/simone/ntopng/scripts/callbacks/system/timeseries.lua][/home/simone/ntopng/scripts/lua/modules/alerts_api.lua:223: attempt to call a nil value (global 'alertEntity')]
2019-08-16 20:48:11 +02:00
emanuele-f
b365cd28df Prevent possible timestamp-based rrd_update errors from occurring 2019-08-02 11:52:40 +02:00
emanuele-f
c183a577be Alerts API cleanup and JSON migration 2019-07-29 15:17:22 +02:00
emanuele-f
9c39268441 Fix script failures when prometheus export is enabled 2019-07-25 17:27:51 +02:00
emanuele-f
0d04f24881 Remove unnecessary call 2019-07-15 22:33:12 +02:00
emanuele-f
a1a283d423 Change misbehaving flows ts label 2019-07-10 16:24:49 +02:00
emanuele-f
a3e1744353 Fix system interface timeseries cleanup 2019-07-05 16:26:33 +02:00
Simone Mainardi
e28bb2ae96 Implements InfluxDB overall health checks 2019-07-04 12:49:39 +02:00
Simone Mainardi
5187a36d37 Implements flags to detect recent InfluxDB export failures and dropped points 2019-07-04 11:38:10 +02:00
emanuele-f
47e5d87e44 Show InfluxDB setup errors in the header
Fixes #2702
2019-07-03 16:59:29 +02:00
emanuele-f
0957bef845 Fix InfluxDB error with partial reply during setup
Fixes #2703
2019-07-03 14:30:14 +02:00
Simone Mainardi
9f3bb73ddc Keeps InfluxDB export stats since startup 2019-07-02 18:42:09 +02:00
Luca
d73a6e7959 Prometheus export fix 2019-07-02 15:20:33 +02:00
emanuele-f
c56b01b37e Improve timeseries comments and fix Prometheus settings 2019-07-02 15:05:55 +02:00
Simone Mainardi
90d7255253 Fixes prometheus data format 2019-07-01 23:17:05 +02:00
Luca Deri
dfb0dd4041 Fixed Prometheus.io export. TODO: tell ntopng to read from data from it 2019-07-01 19:07:47 +02:00
Simone Mainardi
0e3de3efe6 Fixes InfluxDB memory calculation
Fixes #2694
2019-07-01 18:44:48 +02:00
emanuele-f
840b423aff Fix RRD l4 protos collision in Windows due to case insensitive paths 2019-07-01 12:01:07 +02:00
emanuele-f
005d56e5dd Fix RRD collisions
Fixes #2690

Thank you @FrancescoStaccini for the hints
2019-07-01 11:29:43 +02:00
Luca Deri
4166f442ab Prometheus support (work in progress) 2019-06-30 23:25:24 +02:00
Simone Mainardi
0ed48a245b Adds better description of InfluxDB monitored metrics 2019-06-30 12:56:04 +02:00
Simone Mainardi
80fb89b093 Uses a hash to keep InfluxDB counters (easier to delete in bulk) 2019-06-28 19:05:53 +02:00
Simone Mainardi
6ff75df695 Fixes InfluxDB alerts not set on the system interface 2019-06-28 18:51:12 +02:00
Simone Mainardi
9a5297f0d5 Prevents InfluxDB dropped points alerts from being triggered too often 2019-06-28 18:36:42 +02:00
Simone Mainardi
b34332ec60 Raises influxdb max export queue len to 200 2019-06-28 18:23:36 +02:00
Simone Mainardi
1019f024e4 Adds influxdb dropped points alert 2019-06-28 18:21:25 +02:00
emanuele-f
2df194a282 Implement alert release 2019-06-28 15:06:39 +02:00
emanuele-f
a9d3c78587 Alerts changes
NOTE: database schema changed. Existing alerts will be lost.

- Unified engaged and closed tables
- Simplified hosts engaged alert counters handling: periodically set by lua
- Removed alert engine and replaced with alert periodicity
- Now engage is implicitly derived from the alert end timestamp and periodicity
- New alerts_api.lua to easily emit alerts
- Removed past alerts counter aggregation by hash
- Alert notifications for non-flow alerts are now removed from C and triggered by lua
2019-06-28 10:47:17 +02:00
emanuele-f
c506ef6aeb Implement L7 num flows charts 2019-06-27 10:00:14 +02:00
Simone Mainardi
775b6f8842 Adds InfluxDB total exports 2019-06-25 18:23:58 +02:00
Simone Mainardi
221b224abb Simplifies handling of Influxdb export stats using Lua 2019-06-25 17:22:41 +02:00
Simone Mainardi
9863cfd0ba Reworks InfluxDB export to better handle retries 2019-06-24 17:48:53 +02:00
emanuele-f
f9dd5e5e34 Implement retried/failed exports influxdb counters
Also add support for inline chart custom labels
2019-06-21 17:11:11 +02:00
emanuele-f
96e371a079 Make graphs menu explicit in system scripts and add support for custom graphs 2019-06-21 13:51:27 +02:00
emanuele-f
b42f795e44 Fix ts file incorrectly deleted after a failed export 2019-06-20 12:07:16 +02:00
emanuele-f
a2f4dc0c24 Add alert generated when InfluxDB export queue is too long 2019-06-19 15:33:56 +02:00
emanuele-f
3898e21558 Improve InfluxDB export logic
Retry multiple times before discarding a file. Also more log messages are now produced.
2019-06-19 14:50:31 +02:00
emanuele-f
956a3713dc InfluxDB export deadline 2019-06-19 11:42:14 +02:00
emanuele-f
89b9aebfd7 Delete ts export queue on startup and add missing error 2019-06-19 11:21:27 +02:00
emanuele-f
aa17725323 Additional debug for RRD 2019-06-19 09:36:58 +02:00
emanuele-f
e43bb6680e Add support for other aggregation functions
monitored host RTT now uses MAX as aggregation function
2019-06-18 16:50:50 +02:00
emanuele-f
dba42d5842 Fix for 0 as last point while using aggregated data 2019-06-18 15:37:24 +02:00