Commit 6ab90425 by Pranay Kanwar Committed by Torkel Ödegaard

Pass dropcounter rate option if no max counter and no reset value or reset value…

Pass dropcounter rate option if no max counter and no reset value or reset value as 0 is specified (#7743)
parent c3202d3f
......@@ -190,6 +190,10 @@ func (e *OpenTsdbExecutor) buildMetric(query *tsdb.Query) map[string]interface{}
rateOptions["resetValue"] = resetValue.MustFloat64()
}
if !counterMaxCheck && (!resetValueCheck || resetValue.MustFloat64() == 0) {
rateOptions["dropcounter"] = true
}
metric["rateOptions"] = rateOptions
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment