Fix dropcounter option, is called dropResets (#8336)
This commit is contained in:
committed by
Torkel Ödegaard
parent
4a35126bf6
commit
ee8799de88
@@ -191,7 +191,7 @@ func (e *OpenTsdbExecutor) buildMetric(query *tsdb.Query) map[string]interface{}
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !counterMaxCheck && (!resetValueCheck || resetValue.MustFloat64() == 0) {
|
if !counterMaxCheck && (!resetValueCheck || resetValue.MustFloat64() == 0) {
|
||||||
rateOptions["dropcounter"] = true
|
rateOptions["dropResets"] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
metric["rateOptions"] = rateOptions
|
metric["rateOptions"] = rateOptions
|
||||||
|
|||||||
Reference in New Issue
Block a user