use big nodata interval
This commit is contained in:
parent
5057cd0ae6
commit
940313bd4e
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue