mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-10 00:42:14 +00:00
While playing around with the timeseries feature I got the following exception when trying to use Telegraf's `inputs.influxdb_listener` as proxy to a Prometheus database. ``` ...opng/scripts/lua/modules/timeseries/drivers/influxdb.lua:1643: attempt to index a nil value (local 'current') ``` `current` is likely supposed to be checked for nil earlier together with `required`, but instead of `current` the line is checking `version`, which isn't used anymore afterwards though. So this commit changes the check from `version == nil` to `current == nil`. Since then I've discovered that proxying Prometheus via Telegraf's `influxdb_listener` doesn't work anyways since ntopng also tries to read from it, but that's a different story. |
||
|---|---|---|
| .. | ||
| custom | ||
| drivers | ||
| schemas | ||
| tests | ||
| ts_common.lua | ||
| ts_schema.lua | ||
| ts_utils.lua | ||
| ts_utils_core.lua | ||