|
|
@ -1839,8 +1839,9 @@ func (ev *evaluator) rangeEvalTimestampFunctionOverVectorSelector(vs *parser.Vec |
|
|
|
|
|
|
|
|
|
|
|
return ev.rangeEval(nil, func(v []parser.Value, _ [][]EvalSeriesHelper, enh *EvalNodeHelper) (Vector, storage.Warnings) { |
|
|
|
return ev.rangeEval(nil, func(v []parser.Value, _ [][]EvalSeriesHelper, enh *EvalNodeHelper) (Vector, storage.Warnings) { |
|
|
|
if vs.Timestamp != nil { |
|
|
|
if vs.Timestamp != nil { |
|
|
|
// This is a special case only for "timestamp" since the offset
|
|
|
|
// This is a special case for "timestamp()" when the @ modifier is used, to ensure that
|
|
|
|
// needs to be adjusted for every point.
|
|
|
|
// we return a point for each time step in this case.
|
|
|
|
|
|
|
|
// See https://github.com/prometheus/prometheus/issues/8433.
|
|
|
|
vs.Offset = time.Duration(enh.Ts-*vs.Timestamp) * time.Millisecond |
|
|
|
vs.Offset = time.Duration(enh.Ts-*vs.Timestamp) * time.Millisecond |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|