jaegertracing / jaeger-clickhouse

Jaeger ClickHouse storage plugin implementation
Apache License 2.0
247 stars 51 forks source link

Hardcoded jaeger path #11

Closed EinKrebs closed 3 years ago

EinKrebs commented 3 years ago

Make considers path to jaeger all-in-one as ${HOME}/projects/jaegertracing/jaeger/cmd/all-in-one/all-in-one-linux-amd64, maybe it's better to make environmental variable for this

pavolloffay commented 3 years ago

The path is configurable like the readme says https://github.com/pavolloffay/jaeger-clickhouse#run

pavolloffay commented 3 years ago

We should change the run command to run Jaeger all-in-one from docker and inject the compiled plugin via volume.

pavolloffay commented 3 years ago

Something like this could work, but it doesn't. I didn't dig into it.

.PHONY: run
run:
    docker run --rm -it -u ${shell id -u} -v "${PWD}:/data" -e SPAN_STORAGE_TYPE=grpc-plugin jaegertracing/all-in-one:1.24.0 --grpc-storage-plugin.binary=/data/jaeger-clickhouse-$(GOOS)-$(GOARCH) --grpc-storage-plugin.configuration-file=/data/config.yaml
    #SPAN_STORAGE_TYPE=grpc-plugin ${JAEGER_ALL_IN_ONE} --grpc-storage-plugin.binary=./jaeger-clickhouse-$(GOOS)-$(GOARCH) --grpc-storage-plugin.configuration-file=./config.yaml