-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #554 from go-faster/perf/improve-label-lookup
perf(chstorage): only query resource attributes for labels
- Loading branch information
Showing
46 changed files
with
1,421 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
echo ">> Benchmark" | ||
start_time="2024-11-20T00:00:00Z" | ||
end_time="2024-12-01T00:00:00Z" | ||
|
||
queries_file="${BENCH_QUERIES:-testdata/logql.yml}" | ||
benchmark_runs="${BENCH_RUNS:-15}" | ||
|
||
OTEL_EXPORTER_OTLP_INSECURE="true" go run github.com/go-faster/oteldb/cmd/otelbench logql bench \ | ||
--start "$start_time" \ | ||
--end "$end_time" \ | ||
-i "$queries_file" \ | ||
-o report.yml \ | ||
--trace \ | ||
--allow-empty=false \ | ||
--count "$benchmark_runs" | ||
|
||
echo ">> Analyze" | ||
go run github.com/go-faster/oteldb/cmd/otelbench logql analyze \ | ||
--input report.yml \ | ||
--format benchstat >benchstat.report.txt | ||
|
||
echo ">> Benchstat" | ||
benchstat benchstat.report.txt |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
echo ">> Setup oteldb locally" | ||
docker compose up -d --remove-orphans --build | ||
|
||
DUMP_DIR="${DUMP_DIR:-/tmp/slowdump}" | ||
|
||
echo ">> Upload benchmark data" | ||
go run github.com/go-faster/oteldb/cmd/otelbench dump restore \ | ||
--truncate \ | ||
--database default \ | ||
--input "${DUMP_DIR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
range: | ||
- title: Failed POST requests | ||
- title: Lookup by materialzied attribute | ||
query: |- | ||
{http_method="POST"} |= "Error" | ||
series: | ||
- title: All POST series | ||
match: ['{http_method="POST"}'] | ||
{level!="DEBUG", service_name="go-faster.oteldb"} | ||
- title: Lookup by regular attribute | ||
query: |- | ||
{operationName="SearchTagValuesV2"} |
Oops, something went wrong.