create expression to remove values in a given time interval
When summarizing over a long time period
summarize(metric1, '1d')
sometimes we need to remove an interval where our data is wrong.
summarize(removeTimeInterval(metric1, 1496079025, 1496079115), '1d')
so if you know that your graphite metrics are broken for a specific interval, you don't need to rewrite their history or delete it entirely.
Instead of the solution in the removeBetweenEpochs branch, I'm now pursuing a different solution that splits the file expr/expr.go into two files "expr.go" and "parser.go". The first will only contain the expr struct. Most of the content original file will move to parser.go. I also intend to create a type Parser struct that will hold the value of the defaultTimeZone so it can also hold the dateParamToEpoch func
@JaderDias also pointed out that my proposal in #222 would be sugar around what can already be done:
- set the mask metric points to FloatMax (rather than 1)
-
removeAboveValue(maxSeries(original.series,mask.of.original.series),FloatMax-1)
Any news about that ?