-
Notifications
You must be signed in to change notification settings - Fork 9.8k
textparse: Use cache for protoparse labels, break interface. #16020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…(...) Simplified the interface given no one is using the return argument. Renamed for clarity too. Found and discussed #15731 (comment) Signed-off-by: bwplotka <bwplotka@gmail.com>
Signed-off-by: bwplotka <bwplotka@gmail.com> Update model/textparse/protobufparse.go Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com> Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com> Addressing comments. Signed-off-by: bwplotka <bwplotka@gmail.com> decoder: reuse histograms and summaries. Signed-off-by: bwplotka <bwplotka@gmail.com> optimize help returning (5% of mem utilization). Signed-off-by: bwplotka <bwplotka@gmail.com> Apply suggestions from code review Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com> Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com> Update prompb/io/prometheus/client/decoder.go Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com> Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com> Fix build. Signed-off-by: bwplotka <bwplotka@gmail.com>
31d7c69
to
2acc5d7
Compare
Initial results are pretty compelling though:
|
Depends on #15731 Signed-off-by: bwplotka <bwplotka@gmail.com>
2acc5d7
to
c495795
Compare
/prombench main --bench.version=bench/protofirst |
⏱️ Welcome to Prometheus Benchmarking Tool. ⏱️ Compared versions: Custom benchmark version: After the successful deployment (check status here), the benchmarking results can be viewed at: Available Commands:
|
/prombench cancel |
Benchmark cancel is in progress. |
Something is off with the prombench results I expected bigger improvement. Might need some work, but pausing it given #15731 makes native histogram parsing good enough (on par really with other protocols), focusing on other things for the next weeks. Anybody can continue this work if they want! |
Depends on #15731
This implements what's discussed in #15731 (comment)
It's quite complex due to https://protobuf.dev/programming-guides/serialization-not-canonical/ and magic suffixes/labels for classic series, but seems doable.