feat(prometheusremotewrite): support native histograms #142
Workflow file for this run
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
name: 'Benchmark' | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
pull_request: | |
env: | |
REGISTRY: ghcr.io | |
WORKDIR: dev/local/ch-bench-read | |
COMPOSE_FILE: docker-compose.ci.yml | |
OTEL_EXPORTER_OTLP_INSECURE: "true" | |
CGO_ENABLED: 0 | |
jobs: | |
PromQL: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21.x" | |
cache: false | |
- uses: docker/setup-buildx-action@v3 | |
- name: Docker log in | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v4 | |
- name: Get Go environment | |
id: go-env | |
run: | | |
echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV | |
echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV | |
echo "goversion=$(go env GOVERSION)" >> $GITHUB_ENV | |
- name: Set up cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
${{ env.cache }} | |
${{ env.modcache }} | |
key: Benchmark-${{ runner.os }}-go-${{ env.goversion }}-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
Benchmark-${{ runner.os }}-go-${{ env.goversion }} | |
- name: Go build | |
env: | |
CGO_ENABLED: 0 | |
run: | | |
go build -trimpath -buildvcs=false -v ./cmd/oteldb | |
go build -trimpath -buildvcs=false -v ./cmd/chotel | |
- name: Start | |
working-directory: ${{ env.WORKDIR }} | |
run: docker compose up -d | |
- name: Load data | |
run: | | |
wget https://storage.yandexcloud.net/faster-public/oteldb/req.rwq | |
go run github.com/go-faster/oteldb/cmd/otelbench promrw replay -i req.rwq | |
- name: Test | |
working-directory: ${{ env.WORKDIR }} | |
run: go run github.com/go-faster/oteldb/cmd/otelbench promql bench -o report.yml -i testdata/node-exporter-selected.promql.yml --trace --allow-empty=false --warmup 5 | |
- name: Upload report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: report.yml | |
path: ${{ env.WORKDIR }}/report.yml | |
if-no-files-found: error | |
retention-days: 1 | |
- name: Analyze report | |
working-directory: ${{ env.WORKDIR }} | |
run: go run github.com/go-faster/oteldb/cmd/otelbench promql analyze -i report.yml | |
CheckBenchAPI: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21.x" | |
cache: false | |
- uses: actions/checkout@v4 | |
- name: Get Go environment | |
id: go-env | |
run: | | |
echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV | |
echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV | |
echo "goversion=$(go env GOVERSION)" >> $GITHUB_ENV | |
- name: Set up cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
${{ env.cache }} | |
${{ env.modcache }} | |
key: Benchmark-API-${{ runner.os }}-go-${{ env.goversion }}-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
Benchmark-API-${{ runner.os }}-go-${{ env.goversion }} | |
- name: Go build | |
run: go build -trimpath -buildvcs=false -v ./cmd/otelbench | |
- name: Ping | |
run: ./otelbench api ping | |
- name: Status | |
run: ./otelbench api status | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |