mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
promql: put holt_winters behind experimental feature flag
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
This commit is contained in:
parent
b6107cc888
commit
15cea39136
|
@ -382,6 +382,8 @@ variance of observations in a native histogram.
|
||||||
|
|
||||||
## `holt_winters()`
|
## `holt_winters()`
|
||||||
|
|
||||||
|
**This function has to be enabled via the [feature flag](../feature_flags.md#experimental-promql-functions) `--enable-feature=promql-experimental-functions`.**
|
||||||
|
|
||||||
`holt_winters(v range-vector, sf scalar, tf scalar)` produces a smoothed value
|
`holt_winters(v range-vector, sf scalar, tf scalar)` produces a smoothed value
|
||||||
for time series based on the range in `v`. The lower the smoothing factor `sf`,
|
for time series based on the range in `v`. The lower the smoothing factor `sf`,
|
||||||
the more importance is given to old data. The higher the trend factor `tf`, the
|
the more importance is given to old data. The higher the trend factor `tf`, the
|
||||||
|
|
|
@ -203,9 +203,10 @@ var Functions = map[string]*Function{
|
||||||
ReturnType: ValueTypeVector,
|
ReturnType: ValueTypeVector,
|
||||||
},
|
},
|
||||||
"holt_winters": {
|
"holt_winters": {
|
||||||
Name: "holt_winters",
|
Name: "holt_winters",
|
||||||
ArgTypes: []ValueType{ValueTypeMatrix, ValueTypeScalar, ValueTypeScalar},
|
ArgTypes: []ValueType{ValueTypeMatrix, ValueTypeScalar, ValueTypeScalar},
|
||||||
ReturnType: ValueTypeVector,
|
ReturnType: ValueTypeVector,
|
||||||
|
Experimental: true,
|
||||||
},
|
},
|
||||||
"hour": {
|
"hour": {
|
||||||
Name: "hour",
|
Name: "hour",
|
||||||
|
|
Loading…
Reference in a new issue