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]
|
[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}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue