Revert "Move host score to 5mins"

This reverts commit ab1aaeb38f.
This commit is contained in:
emanuele-f 2020-02-25 15:42:27 +01:00
parent f689f50e2a
commit a7d7d6e2ed
5 changed files with 0 additions and 18 deletions

View file

@ -400,8 +400,6 @@ function driver:append(schema, timestamp, tags, metrics)
return false
end
-- NOTE: successful writes are counted into ntop_rrd_update in C
if not ntop.exists(rrdfile) then
ntop.mkdir(base)
if not create_rrd(schema, rrdfile) then

View file

@ -225,13 +225,6 @@ schema:addMetric("bytes_rcvd")
-- ##############################################
schema = ts_utils.newSchema("host:score", {step=300, rrd_fname="score_v2", metrics_type=ts_utils.metrics.gauge})
schema:addTag("ifid")
schema:addTag("host")
schema:addMetric("score")
-- ##############################################
schema = ts_utils.newSchema("host:active_flows", {step=300, rrd_fname="active_flows", metrics_type=ts_utils.metrics.gauge})
schema:addTag("ifid")
schema:addTag("host")

View file

@ -214,12 +214,6 @@ function ts_dump.host_update_stats_rrds(when, hostname, host, ifstats, verbose)
ts_utils.append("host:traffic", {ifid=ifstats.id, host=hostname,
bytes_sent=host["bytes.sent"], bytes_rcvd=host["bytes.rcvd"]}, when, verbose)
if((host["score"] ~= nil) and (host["score"] > 0)) then
ts_utils.append("host:score", {ifid=ifstats.id, host=hostname,
score = host["score"]
}, when, verbose)
end
-- Number of flows
ts_utils.append("host:active_flows", {ifid=ifstats.id, host=hostname,
flows_as_client = host["active_flows.as_client"],