Repository navigation
feat(tsdb): new Append parameter and AtST interface for chunks - #17840
Conversation
ce81fd2 to
dc77515
Compare
| // and labelSet. | ||
| // Start timestamps is optional, pass nil or empty slice to indicate no start | ||
| // timestamps. | ||
| func MockSeries(startTimestamps, timestamps []int64, values []float64, labelSet []string) Series { |
There was a problem hiding this comment.
fyi: There's potential to replace all of this with
prometheus/util/teststorage/appender.go
Line 36 in 9cb3641
There was a problem hiding this comment.
maybe we can schedule some LLM agent to at least start the move...
bwplotka
left a comment
There was a problem hiding this comment.
Looks good except the chunk AppenderV2, I vote we make a breaking change here, perhaps with a quick adapter for downstream.
dcb6fc9 to
71a8a3c
Compare
d98c599 to
f20ff80
Compare
No implementation yet. Just to test the shape of the interface. AtST is implemented for trivial cases, anything else is hard coded to return 0. Ref: #17791 Signed-off-by: György Krajcsovits <[email protected]>
Also fix the single multi line fSample definition to be one liner. Signed-off-by: György Krajcsovits <[email protected]>
find . -name "*.go" -type f \
-exec sed -E -i 's/((f|h|fh)Sample\{)([^,{:]+,[^,]+\})/\10, \3/g' {} +
Signed-off-by: György Krajcsovits <[email protected]>
Signed-off-by: György Krajcsovits <[email protected]>
find . -name "*.go" -type f -exec sed -E -i \
's/([^[:alpha:]]sample\{)([^,{:]+,[^,]+,[^,]+,[^,]+\})/\10, \2/g' {} +
I've omitted tsdb/ooo_head.go from the commit because I'm also adding todo
there.
Signed-off-by: György Krajcsovits <[email protected]>
Signed-off-by: György Krajcsovits <[email protected]>
Signed-off-by: György Krajcsovits <[email protected]>
Signed-off-by: György Krajcsovits <[email protected]>
I've checked that commenting out any one of the new lines produces an error. Signed-off-by: György Krajcsovits <[email protected]>
Signed-off-by: György Krajcsovits <[email protected]>
Signed-off-by: György Krajcsovits <[email protected]>
f20ff80 to
6137de0
Compare
|
/prombench main |
|
⏱️ Welcome to Prometheus Benchmarking Tool. ⏱️ Compared versions: After the successful deployment (check status here), the benchmarking results can be viewed at: Available Commands:
|
aknuds1
left a comment
There was a problem hiding this comment.
LGTM modulo minimal nit :)
Co-authored-by: Arve Knudsen <[email protected]> Signed-off-by: George Krajcsovits <[email protected]>
|
Mergable? |
|
/prombench cancel |
|
Benchmark cancel is in progress. |



No implementation yet. Just to test the shape of the interface. AtST is implemented for trivial cases, anything else is hard coded to return 0.
I've added unit tests where possible, TODO otherwise.
Ref: #17791
Based on: #17475
Which issue(s) does the PR fix:
Does this PR introduce a user-facing change?