Skip to content

Commit

Permalink
transform.go: add drop_empty_series() function
Browse files Browse the repository at this point in the history
This function can be used for dropping empty series before performing additional calculations.
For example, the following query drops `temperature` series with values bigger than 30,
while replacing gaps in the remaining series with 40.

   drop_empty_series(temperature <= 30) default 40

Updates VictoriaMetrics/VictoriaMetrics#5071
  • Loading branch information
valyala committed Oct 16, 2023
1 parent a4c347c commit 768297e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var transformFuncs = map[string]bool{
"days_in_month": true,
"deg": true,
"drop_common_labels": true,
"drop_empty_series": true,
"end": true,
"exp": true,
"floor": true,
Expand Down

0 comments on commit 768297e

Please sign in to comment.