carbonapi icon indicating copy to clipboard operation
carbonapi copied to clipboard

create expression to remove values in a given time interval

Open JaderDias opened this issue 8 years ago • 3 comments

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.

JaderDias avatar May 30 '17 12:05 JaderDias

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 avatar May 30 '17 12:05 JaderDias

@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)

nnuss avatar May 30 '17 15:05 nnuss

Any news about that ?

throrin19 avatar Jan 15 '19 14:01 throrin19