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]
Metric = "target_up"
# unit: second
Interval = 15
Interval = 120
[Ibex]
# callback: ${ibex}/${tplid}/${host}

View File

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

View File

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