mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
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
This commit is contained in:
parent
2c641cf286
commit
4cbe45a948
54 changed files with 5579 additions and 1765 deletions
|
|
@ -3,6 +3,7 @@
|
|||
--
|
||||
|
||||
local ts_schema = {}
|
||||
local ts_types = require("ts_types")
|
||||
|
||||
-- NOTE: to get the actual rentention period, multiply retention_dp * aggregation_dp * step
|
||||
ts_schema.supported_steps = {
|
||||
|
|
@ -42,6 +43,7 @@ ts_schema.supported_steps = {
|
|||
|
||||
function ts_schema:new(name, options)
|
||||
options = options or {}
|
||||
options.metrics_type = options.metrics_type or ts_types.counter
|
||||
|
||||
-- required options
|
||||
if not options.step then
|
||||
|
|
@ -74,10 +76,9 @@ function ts_schema:addTag(name)
|
|||
self.tags[name] = 1
|
||||
end
|
||||
|
||||
-- metric_type: a type in ts_utils.metrics
|
||||
function ts_schema:addMetric(name, metric_type)
|
||||
function ts_schema:addMetric(name)
|
||||
self._metrics[#self._metrics + 1] = name
|
||||
self.metrics[name] = {["type"]=metric_type}
|
||||
self.metrics[name] = 1
|
||||
end
|
||||
|
||||
function ts_schema:verifyTags(tags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue