-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define holt_winters alias within Mimir itself
Signed-off-by: Arve Knudsen <[email protected]>
- Loading branch information
Showing
6 changed files
with
60 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package mimir | ||
|
||
import ( | ||
"github.com/prometheus/prometheus/promql" | ||
"github.com/prometheus/prometheus/promql/parser" | ||
) | ||
|
||
func init() { | ||
// Keep an alias for users using holt_winters, even though dropped in Prometheus v3. | ||
promql.FunctionCalls["holt_winters"] = promql.FunctionCalls["double_exponential_smoothing"] | ||
parser.Functions["holt_winters"] = parser.Functions["double_exponential_smoothing"] | ||
parser.Functions["holt_winters"].Experimental = false | ||
} |
86 changes: 42 additions & 44 deletions
86
vendor/github.com/prometheus/prometheus/promql/functions.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
vendor/github.com/prometheus/prometheus/promql/parser/functions.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.