Hello folks, I have build the query-service, usin...
# support
a
Hello folks, I have build the query-service, using
Copy code
cd pkg/query-service
go build -o build/query-service main.go
ClickHouseUrl=<tcp://localhost:9001> STORAGE=clickhouse build/query-service
when i run
./query-service
i get,
Copy code
/opt/homebrew/Cellar/go/1.19.4/libexec/src/runtime/proc.go:250
2023-01-15T12:12:16.139+0530    FATAL   query-service/main.go:68        Failed to create server{error 26 0  Storage type:  is not supported in query service}
Any ideas/suggestion would be helpful.
p
Hi @akshay awate 👋 You can either make use of
make run-local
to build and deploy FE/BE images locally along with rest of the cluster.
Or, you could update
docker-compose.yaml
to include
ports
with
9001:9000
:
Copy code
services:
  clickhouse:
    ...
    ports:
    - 9001:9000
Followed by the following:
Copy code
docker-compose -f deploy/docker/clickhouse-setup/docker-compose.yaml up -d
After which:
Copy code
cd pkg/query-service/

DASHBOARDS_PATH=../../deploy/docker/dashboards SIGNOZ_LOCAL_DB_PATH="./signoz.db" ClickHouseUrl=<tcp://localhost:9001> STORAGE=clickhouse go run main.go
a
I just want BE(query-service),let me try with above commands @Prashant Shahi
p
Backend i.e. query-service has dependency to Alertmanager and ClickHouse. And the table schema creation is handled by go-migrate files from OtelCollector and OtelCollector Metrics, so you will need them as well.
a
yup
p
You can also comment out
query-service
and perhaps even
frontend
service section in
docker-compose.yaml
if you not planning on using them.
a
yeah, will do commenting
query
and
frontend
service in docker-compose and build query-service using
Copy code
cd pkg/query-service/

DASHBOARDS_PATH=../../deploy/docker/dashboards SIGNOZ_LOCAL_DB_PATH="./signoz.db" ClickHouseUrl=<tcp://localhost:9001> STORAGE=clickhouse go run main.go
and does this support for mac m1 correctly ? @Prashant Shahi
p
yes, it should support work fine with M1 chip.
a
let me try and thanks for your time and help @Prashant Shahi
p
sure 👍