mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect/promql: adjust ttf
calculation, so deriv(freev)
for freev
=m[d]
could be properly calculated
This commit is contained in:
parent
c9cbf5351c
commit
3b3b2f1e6e
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ func getDefaultWithArgExprs() []*withArgExpr {
|
||||||
|
|
||||||
// ttf - time to fuckup
|
// ttf - time to fuckup
|
||||||
`ttf(freev) = smooth_exponential(
|
`ttf(freev) = smooth_exponential(
|
||||||
clamp_max(clamp_min(freev, 0) / clamp_min(deriv(-freev), 0), 365*24*3600),
|
clamp_max(clamp_max(-freev, 0) / clamp_max(deriv(freev), 0), 365*24*3600),
|
||||||
clamp_max(step()/300, 1)
|
clamp_max(step()/300, 1)
|
||||||
)`,
|
)`,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue