test-infra
test-infra copied to clipboard
Add additional PromQL operators to synthetic load
This PR enhances the synthetic load generation by incorporating additional PromQL operators in the 6_loadgen.yaml file:
- Added binary arithmetic operators (joins) to cover more complex query types.
- Included logical operators (and, or, unless) for better query testing coverage.
- Added
topkfunction to test query performance with ranked results.
Solves #705
Hi, I commented on a few, but they are all likely problemmatic. I recommend you change tack to use metrics exposed by the fake webserver, since there are a lot of them and prombench can control them.
Actually i have tested this on one of the Pull Request where the prombench was running.
Ok but my recommendation remains the same.
I have replaced some of the existing metrics with new ones from PromBench, such as:
How many of those did you count?
Hi @bboreham all the queries having value above 2000 , and codelabz metric is having 52000 different variations .
I trimmed down the newly-added queries a bit:
- Slow down arithmetic_operation and logic_operator.
- Took out a few queries to avoid overloading the server.
- Stop querying
_bucketseries directly; those should be used byhistogram_quantileor similar. - Use more realistic
kparameters totopk.
I also trimmed down some pre-existing queries for balance, to retain about the same overall load on the server as before.