SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
chore(query-service): 🔧 update workflows and build files as per optimization changes (#3686)
Prashant Shahid7d400024069
diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yamlindex 98ee1e0fc4..a4c03d014c 100644--- a/.github/workflows/push.yaml+++ b/.github/workflows/push.yaml@@ -42,6 +42,11 @@ jobs:elseecho "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}-oss" >> $GITHUB_ENVfi+ - name: Install cross-compilation tools+ run: |+ set -ex+ sudo apt-get update+ sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools- name: Build and push docker imagerun: make build-push-query-service@@ -77,6 +82,11 @@ jobs:elseecho "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}" >> $GITHUB_ENVfi+ - name: Install cross-compilation tools+ run: |+ set -ex+ sudo apt-get update+ sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools- name: Build and push docker imagerun: make build-push-ee-query-servicediff --git a/.github/workflows/staging-deployment.yaml b/.github/workflows/staging-deployment.yamlindex 6de51f4733..21ea7a3c75 100644--- a/.github/workflows/staging-deployment.yaml+++ b/.github/workflows/staging-deployment.yaml@@ -26,6 +26,7 @@ jobs:echo "GITHUB_SHA: ${GITHUB_SHA}"export DOCKER_TAG="${GITHUB_SHA:0:7}" # needed for child process to access itexport OTELCOL_TAG="main"+ export PATH="/usr/local/go/bin/:$PATH" # needed for Golang to workdocker system prune --forcedocker pull signoz/signoz-otel-collector:maincd ~/signozdiff --git a/.github/workflows/testing-deployment.yaml b/.github/workflows/testing-deployment.yamlindex d65a4e8bbc..799222ee3e 100644--- a/.github/workflows/testing-deployment.yaml+++ b/.github/workflows/testing-deployment.yaml@@ -26,6 +26,7 @@ jobs:echo "GITHUB_SHA: ${GITHUB_SHA}"export DOCKER_TAG="${GITHUB_SHA:0:7}" # needed for child process to access itexport DEV_BUILD="1"+ export PATH="/usr/local/go/bin/:$PATH" # needed for Golang to workdocker system prune --forcecd ~/signozgit statusdiff --git a/Makefile b/Makefileindex 01ac0e33ab..8e62b6cb5c 100644--- a/Makefile+++ b/Makefile@@ -119,22 +119,18 @@ build-push-query-service: build-query-service-static-all--tag $(REPONAME)/$(QUERY_SERVICE_DOCKER_IMAGE):$(DOCKER_TAG) .# Step to build EE docker image of query service in amd64 (used in build pipeline)-build-ee-query-service-amd64: build-query-service-static-amd64+build-ee-query-service-amd64:@echo "------------------"@echo "--> Building query-service docker image for amd64"@echo "------------------"- @docker build --file $(EE_QUERY_SERVICE_DIRECTORY)/Dockerfile \- --tag $(REPONAME)/$(QUERY_SERVICE_DOCKER_IMAGE):$(DOCKER_TAG) \- --build-arg TARGETPLATFORM="linux/amd64" .+ make QUERY_SERVICE_DIRECTORY=${EE_QUERY_SERVICE_DIRECTORY} build-query-service-amd64# Step to build and push EE docker image of query in amd64 and arm64 (used in push pipeline)-build-push-ee-query-service: build-query-service-static-all+build-push-ee-query-service: build-ee-query-service-static-all@echo "------------------"@echo "--> Building and pushing query-service docker image"@echo "------------------"- @docker buildx build --file $(EE_QUERY_SERVICE_DIRECTORY)/Dockerfile \- --progress plain --push --platform linux/arm64,linux/amd64 \- --tag $(REPONAME)/$(QUERY_SERVICE_DOCKER_IMAGE):$(DOCKER_TAG) .+ make QUERY_SERVICE_DIRECTORY=${EE_QUERY_SERVICE_DIRECTORY} build-push-query-servicedev-setup:mkdir -p /var/lib/signozdiff --git a/ee/query-service/Dockerfile b/ee/query-service/Dockerfileindex 09e2701aa5..46b2186ec4 100644--- a/ee/query-service/Dockerfile+++ b/ee/query-service/Dockerfile@@ -14,10 +14,10 @@ RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*WORKDIR /root# copy the query-service binary-COPY ee/pkg/query-service/bin/query-service-${TARGETOS}-${TARGETARCH} /root/query-service+COPY ee/query-service/bin/query-service-${TARGETOS}-${TARGETARCH} /root/query-service# copy prometheus YAML config-COPY ee/pkg/query-service/config/prometheus.yml /root/config/prometheus.yml+COPY pkg/query-service/config/prometheus.yml /root/config/prometheus.yml# Make query-service executable for non-root usersRUN chmod 755 /root /root/query-service