use big nodata interval

This commit is contained in:
Ulric Qin 2022-08-27 18:15:56 +08:00
parent 5057cd0ae6
commit 940313bd4e
3 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ Headers = ["Content-Type", "application/json", "X-From", "N9E"]
[NoData] [NoData]
Metric = "target_up" Metric = "target_up"
# unit: second # unit: second
Interval = 15 Interval = 120
[Ibex] [Ibex]
# callback: ${ibex}/${tplid}/${host} # callback: ${ibex}/${tplid}/${host}

View File

@ -107,7 +107,7 @@ Headers = ["Content-Type", "application/json", "X-From", "N9E"]
[NoData] [NoData]
Metric = "target_up" Metric = "target_up"
# unit: second # unit: second
Interval = 15 Interval = 120
[Ibex] [Ibex]
# callback: ${ibex}/${tplid}/${host} # callback: ${ibex}/${tplid}/${host}

View File

@ -49,7 +49,7 @@ func toRedis() {
// clean old idents // clean old idents
for key, at := range items { for key, at := range items {
if at.(int64) < now-10 { if at.(int64) < now-config.C.NoData.Interval {
Idents.Remove(key) Idents.Remove(key)
} else { } else {
// use now as timestamp to redis // use now as timestamp to redis