mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-03 19:04:44 +08:00
feat: signoz package and deprecation of frontend, alertmanager (#7301)
### Summary - signoz package with goreleaser - frontend deprecation - alertmanager deprecation --------- Signed-off-by: Prashant Shahi <prashant@signoz.io>
This commit is contained in:
parent
32d144845a
commit
eee3f7d549
20
.github/workflows/build.yaml
vendored
20
.github/workflows/build.yaml
vendored
@ -14,12 +14,12 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: cd frontend && yarn install
|
run: cd frontend && yarn install
|
||||||
- name: Build frontend docker image
|
- name: Build frontend static files
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
make build-frontend-amd64
|
make build-frontend-static
|
||||||
|
|
||||||
build-query-service:
|
build-signoz:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@ -27,13 +27,13 @@ jobs:
|
|||||||
- name: Setup golang
|
- name: Setup golang
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "1.21"
|
go-version: "1.22"
|
||||||
- name: Build query-service image
|
- name: Build signoz image
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
make build-query-service-amd64
|
make build-signoz-amd64
|
||||||
|
|
||||||
build-ee-query-service:
|
build-signoz-community:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@ -41,8 +41,8 @@ jobs:
|
|||||||
- name: Setup golang
|
- name: Setup golang
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "1.21"
|
go-version: "1.22"
|
||||||
- name: Build EE query-service image
|
- name: Build signoz community image
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
make build-ee-query-service-amd64
|
make build-signoz-community-amd64
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
name: goreleaser
|
name: gor-histogramquantile
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- v*
|
|
||||||
- histogram-quantile/v*
|
- histogram-quantile/v*
|
||||||
|
|
||||||
permissions:
|
permissions:
|
155
.github/workflows/gor-signoz-community.yaml
vendored
Normal file
155
.github/workflows/gor-signoz-community.yaml
vendored
Normal file
@ -0,0 +1,155 @@
|
|||||||
|
name: gor-signoz-community
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
prepare:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: get-sha
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
- name: build-frontend
|
||||||
|
run: make build-frontend-static
|
||||||
|
- name: upload-frontend-artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: community-frontend-build-${{ env.sha_short }}
|
||||||
|
path: frontend/build
|
||||||
|
build:
|
||||||
|
needs: prepare
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macos-latest
|
||||||
|
env:
|
||||||
|
CONFIG_PATH: pkg/query-service/.goreleaser.yaml
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: setup-qemu
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
- name: setup-buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
- name: ghcr-login
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
if: matrix.os != 'macos-latest'
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: setup-go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: "1.22"
|
||||||
|
- name: cross-compilation-tools
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools
|
||||||
|
- name: get-sha
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
- name: download-frontend-artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: community-frontend-build-${{ env.sha_short }}
|
||||||
|
path: frontend/build
|
||||||
|
- name: cache-linux
|
||||||
|
uses: actions/cache@v4
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
with:
|
||||||
|
path: dist/linux
|
||||||
|
key: signoz-community-linux-${{ env.sha_short }}
|
||||||
|
- name: cache-darwin
|
||||||
|
uses: actions/cache@v4
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
with:
|
||||||
|
path: dist/darwin
|
||||||
|
key: signoz-community-darwin-${{ env.sha_short }}
|
||||||
|
- name: release
|
||||||
|
uses: goreleaser/goreleaser-action@v6
|
||||||
|
with:
|
||||||
|
distribution: goreleaser-pro
|
||||||
|
version: '~> v2'
|
||||||
|
args: release --config ${{ env.CONFIG_PATH }} --clean --split
|
||||||
|
workdir: .
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
env:
|
||||||
|
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
||||||
|
WORKDIR: pkg/query-service
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: setup-qemu
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
- name: setup-buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: cosign-installer
|
||||||
|
uses: sigstore/cosign-installer@v3.8.1
|
||||||
|
- name: download-syft
|
||||||
|
uses: anchore/sbom-action/download-syft@v0.18.0
|
||||||
|
- name: ghcr-login
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: setup-go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: "1.22"
|
||||||
|
|
||||||
|
# copy the caches from build
|
||||||
|
- name: get-sha
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
- name: cache-linux
|
||||||
|
id: cache-linux
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: dist/linux
|
||||||
|
key: signoz-community-linux-${{ env.sha_short }}
|
||||||
|
- name: cache-darwin
|
||||||
|
id: cache-darwin
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: dist/darwin
|
||||||
|
key: signoz-community-darwin-${{ env.sha_short }}
|
||||||
|
|
||||||
|
# release
|
||||||
|
- uses: goreleaser/goreleaser-action@v6
|
||||||
|
if: steps.cache-linux.outputs.cache-hit == 'true' && steps.cache-darwin.outputs.cache-hit == 'true' # only run if caches hit
|
||||||
|
with:
|
||||||
|
distribution: goreleaser-pro
|
||||||
|
version: '~> v2'
|
||||||
|
args: continue --merge
|
||||||
|
workdir: .
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
168
.github/workflows/gor-signoz.yaml
vendored
Normal file
168
.github/workflows/gor-signoz.yaml
vendored
Normal file
@ -0,0 +1,168 @@
|
|||||||
|
name: gor-signoz
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
prepare:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: get-sha
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
- name: dotenv-frontend
|
||||||
|
working-directory: frontend
|
||||||
|
run: |
|
||||||
|
echo 'INTERCOM_APP_ID="${{ secrets.INTERCOM_APP_ID }}"' > .env
|
||||||
|
echo 'SEGMENT_ID="${{ secrets.SEGMENT_ID }}"' >> .env
|
||||||
|
echo 'SENTRY_AUTH_TOKEN="${{ secrets.SENTRY_AUTH_TOKEN }}"' >> .env
|
||||||
|
echo 'SENTRY_ORG="${{ secrets.SENTRY_ORG }}"' >> .env
|
||||||
|
echo 'SENTRY_PROJECT_ID="${{ secrets.SENTRY_PROJECT_ID }}"' >> .env
|
||||||
|
echo 'SENTRY_DSN="${{ secrets.SENTRY_DSN }}"' >> .env
|
||||||
|
echo 'TUNNEL_URL="${{ secrets.TUNNEL_URL }}"' >> .env
|
||||||
|
echo 'TUNNEL_DOMAIN="${{ secrets.TUNNEL_DOMAIN }}"' >> .env
|
||||||
|
echo 'POSTHOG_KEY="${{ secrets.POSTHOG_KEY }}"' >> .env
|
||||||
|
echo 'CUSTOMERIO_ID="${{ secrets.CUSTOMERIO_ID }}"' >> .env
|
||||||
|
echo 'CUSTOMERIO_SITE_ID="${{ secrets.CUSTOMERIO_SITE_ID }}"' >> .env
|
||||||
|
- name: build-frontend
|
||||||
|
run: make build-frontend-static
|
||||||
|
- name: upload-frontend-artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: frontend-build-${{ env.sha_short }}
|
||||||
|
path: frontend/build
|
||||||
|
build:
|
||||||
|
needs: prepare
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macos-latest
|
||||||
|
env:
|
||||||
|
CONFIG_PATH: ee/query-service/.goreleaser.yaml
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: setup-qemu
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
- name: setup-buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
- name: ghcr-login
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
if: matrix.os != 'macos-latest'
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: setup-go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: "1.22"
|
||||||
|
- name: cross-compilation-tools
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools
|
||||||
|
- name: get-sha
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
- name: download-frontend-artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: frontend-build-${{ env.sha_short }}
|
||||||
|
path: frontend/build
|
||||||
|
- name: cache-linux
|
||||||
|
uses: actions/cache@v4
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
with:
|
||||||
|
path: dist/linux
|
||||||
|
key: signoz-linux-${{ env.sha_short }}
|
||||||
|
- name: cache-darwin
|
||||||
|
uses: actions/cache@v4
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
with:
|
||||||
|
path: dist/darwin
|
||||||
|
key: signoz-darwin-${{ env.sha_short }}
|
||||||
|
- name: release
|
||||||
|
uses: goreleaser/goreleaser-action@v6
|
||||||
|
with:
|
||||||
|
distribution: goreleaser-pro
|
||||||
|
version: '~> v2'
|
||||||
|
args: release --config ${{ env.CONFIG_PATH }} --clean --split
|
||||||
|
workdir: .
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
env:
|
||||||
|
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: setup-qemu
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
- name: setup-buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: cosign-installer
|
||||||
|
uses: sigstore/cosign-installer@v3.8.1
|
||||||
|
- name: download-syft
|
||||||
|
uses: anchore/sbom-action/download-syft@v0.18.0
|
||||||
|
- name: ghcr-login
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: setup-go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: "1.22"
|
||||||
|
|
||||||
|
# copy the caches from build
|
||||||
|
- name: get-sha
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
- name: cache-linux
|
||||||
|
id: cache-linux
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: dist/linux
|
||||||
|
key: signoz-linux-${{ env.sha_short }}
|
||||||
|
- name: cache-darwin
|
||||||
|
id: cache-darwin
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: dist/darwin
|
||||||
|
key: signoz-darwin-${{ env.sha_short }}
|
||||||
|
|
||||||
|
# release
|
||||||
|
- uses: goreleaser/goreleaser-action@v6
|
||||||
|
if: steps.cache-linux.outputs.cache-hit == 'true' && steps.cache-darwin.outputs.cache-hit == 'true' # only run if caches hit
|
||||||
|
with:
|
||||||
|
distribution: goreleaser-pro
|
||||||
|
version: '~> v2'
|
||||||
|
args: continue --merge
|
||||||
|
workdir: .
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
181
.github/workflows/push.yaml
vendored
181
.github/workflows/push.yaml
vendored
@ -8,56 +8,27 @@ on:
|
|||||||
- v*
|
- v*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
image-build-and-push-query-service:
|
image-build-and-push-signoz:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup golang
|
- name: setup
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "1.21"
|
go-version: "1.22"
|
||||||
- name: Set up QEMU
|
- name: setup-qemu
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
- name: Set up Docker Buildx
|
- name: setup-buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
- name: Login to DockerHub
|
- name: docker-login
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- uses: benjlevesque/short-sha@v2.2
|
- name: create-env-file
|
||||||
id: short-sha
|
|
||||||
- name: Get branch name
|
|
||||||
id: branch-name
|
|
||||||
uses: tj-actions/branch-names@v7.0.7
|
|
||||||
- name: Set docker tag environment
|
|
||||||
run: |
|
|
||||||
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
|
||||||
tag="${{ steps.branch-name.outputs.tag }}"
|
|
||||||
tag="${tag:1}"
|
|
||||||
echo "DOCKER_TAG=${tag}-oss" >> $GITHUB_ENV
|
|
||||||
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
|
||||||
echo "DOCKER_TAG=latest-oss" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}-oss" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
- 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 image
|
|
||||||
run: make build-push-query-service
|
|
||||||
|
|
||||||
image-build-and-push-ee-query-service:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Create .env file
|
|
||||||
run: |
|
run: |
|
||||||
echo 'INTERCOM_APP_ID="${{ secrets.INTERCOM_APP_ID }}"' > frontend/.env
|
echo 'INTERCOM_APP_ID="${{ secrets.INTERCOM_APP_ID }}"' > frontend/.env
|
||||||
echo 'SEGMENT_ID="${{ secrets.SEGMENT_ID }}"' >> frontend/.env
|
echo 'SEGMENT_ID="${{ secrets.SEGMENT_ID }}"' >> frontend/.env
|
||||||
@ -70,140 +41,94 @@ jobs:
|
|||||||
echo 'POSTHOG_KEY="${{ secrets.POSTHOG_KEY }}"' >> frontend/.env
|
echo 'POSTHOG_KEY="${{ secrets.POSTHOG_KEY }}"' >> frontend/.env
|
||||||
echo 'CUSTOMERIO_ID="${{ secrets.CUSTOMERIO_ID }}"' >> frontend/.env
|
echo 'CUSTOMERIO_ID="${{ secrets.CUSTOMERIO_ID }}"' >> frontend/.env
|
||||||
echo 'CUSTOMERIO_SITE_ID="${{ secrets.CUSTOMERIO_SITE_ID }}"' >> frontend/.env
|
echo 'CUSTOMERIO_SITE_ID="${{ secrets.CUSTOMERIO_SITE_ID }}"' >> frontend/.env
|
||||||
- name: Setup golang
|
|
||||||
uses: actions/setup-go@v4
|
|
||||||
with:
|
|
||||||
go-version: "1.21"
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
- name: Login to DockerHub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
- uses: benjlevesque/short-sha@v2.2
|
- uses: benjlevesque/short-sha@v2.2
|
||||||
id: short-sha
|
id: short-sha
|
||||||
- name: Get branch name
|
- name: branch-name
|
||||||
id: branch-name
|
id: branch-name
|
||||||
uses: tj-actions/branch-names@v7.0.7
|
uses: tj-actions/branch-names@v7.0.7
|
||||||
- name: Set docker tag environment
|
- name: docker-tag
|
||||||
run: |
|
run: |
|
||||||
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
||||||
tag="${{ steps.branch-name.outputs.tag }}"
|
echo "DOCKER_TAG=${{ steps.branch-name.outputs.tag }}" >> $GITHUB_ENV
|
||||||
tag="${tag:1}"
|
|
||||||
echo "DOCKER_TAG=$tag" >> $GITHUB_ENV
|
|
||||||
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
||||||
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
|
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}" >> $GITHUB_ENV
|
echo "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: Install cross-compilation tools
|
- name: cross-compilation-tools
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
set -ex
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools
|
sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools
|
||||||
- name: Build and push docker image
|
- name: publish-signoz
|
||||||
run: make build-push-ee-query-service
|
run: make build-push-signoz
|
||||||
|
- name: qs-docker-tag
|
||||||
image-build-and-push-frontend:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Install dependencies
|
|
||||||
working-directory: frontend
|
|
||||||
run: yarn install
|
|
||||||
- name: Run Prettier
|
|
||||||
working-directory: frontend
|
|
||||||
run: npm run prettify
|
|
||||||
continue-on-error: true
|
|
||||||
- name: Run ESLint
|
|
||||||
working-directory: frontend
|
|
||||||
run: npm run lint
|
|
||||||
continue-on-error: true
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
- name: Login to DockerHub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
- uses: benjlevesque/short-sha@v2.2
|
|
||||||
id: short-sha
|
|
||||||
- name: Get branch name
|
|
||||||
id: branch-name
|
|
||||||
uses: tj-actions/branch-names@v7.0.7
|
|
||||||
- name: Set docker tag environment
|
|
||||||
run: |
|
run: |
|
||||||
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
||||||
tag="${{ steps.branch-name.outputs.tag }}"
|
tag="${{ steps.branch-name.outputs.tag }}"
|
||||||
tag="${tag:1}"
|
tag="${tag:1}"
|
||||||
echo "DOCKER_TAG=$tag" >> $GITHUB_ENV
|
echo "DOCKER_TAG=${tag}" >> $GITHUB_ENV
|
||||||
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
||||||
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
|
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}" >> $GITHUB_ENV
|
echo "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: Build and push docker image
|
- name: publish-query-service
|
||||||
run: make build-push-frontend
|
run: |
|
||||||
|
SIGNOZ_DOCKER_IMAGE=query-service make build-push-signoz
|
||||||
|
|
||||||
image-build-and-push-frontend-ee:
|
image-build-and-push-signoz-community:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Create .env file
|
- name: setup-go
|
||||||
run: |
|
uses: actions/setup-go@v4
|
||||||
echo 'INTERCOM_APP_ID="${{ secrets.INTERCOM_APP_ID }}"' > frontend/.env
|
with:
|
||||||
echo 'SEGMENT_ID="${{ secrets.SEGMENT_ID }}"' >> frontend/.env
|
go-version: "1.22"
|
||||||
echo 'SENTRY_AUTH_TOKEN="${{ secrets.SENTRY_AUTH_TOKEN }}"' >> frontend/.env
|
- name: setup-qemu
|
||||||
echo 'SENTRY_ORG="${{ secrets.SENTRY_ORG }}"' >> frontend/.env
|
uses: docker/setup-qemu-action@v3
|
||||||
echo 'SENTRY_PROJECT_ID="${{ secrets.SENTRY_PROJECT_ID }}"' >> frontend/.env
|
- name: setup-buildx
|
||||||
echo 'SENTRY_DSN="${{ secrets.SENTRY_DSN }}"' >> frontend/.env
|
|
||||||
echo 'TUNNEL_URL="${{ secrets.TUNNEL_URL }}"' >> frontend/.env
|
|
||||||
echo 'TUNNEL_DOMAIN="${{ secrets.TUNNEL_DOMAIN }}"' >> frontend/.env
|
|
||||||
echo 'POSTHOG_KEY="${{ secrets.POSTHOG_KEY }}"' >> frontend/.env
|
|
||||||
- name: Install dependencies
|
|
||||||
working-directory: frontend
|
|
||||||
run: yarn install
|
|
||||||
- name: Run Prettier
|
|
||||||
working-directory: frontend
|
|
||||||
run: npm run prettify
|
|
||||||
continue-on-error: true
|
|
||||||
- name: Run ESLint
|
|
||||||
working-directory: frontend
|
|
||||||
run: npm run lint
|
|
||||||
continue-on-error: true
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
- name: Login to DockerHub
|
- name: docker-login
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- uses: benjlevesque/short-sha@v2.2
|
- uses: benjlevesque/short-sha@v2.2
|
||||||
id: short-sha
|
id: short-sha
|
||||||
- name: Get branch name
|
- name: branch-name
|
||||||
id: branch-name
|
id: branch-name
|
||||||
uses: tj-actions/branch-names@v7.0.7
|
uses: tj-actions/branch-names@v7.0.7
|
||||||
- name: Set docker tag environment
|
- name: docker-tag
|
||||||
|
run: |
|
||||||
|
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
||||||
|
echo "DOCKER_TAG=${{ steps.branch-name.outputs.tag }}" >> $GITHUB_ENV
|
||||||
|
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
||||||
|
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
- name: cross-compilation-tools
|
||||||
|
run: |
|
||||||
|
set -ex
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools
|
||||||
|
- name: publish-signoz-community
|
||||||
|
run: make build-push-signoz-community
|
||||||
|
- name: qs-docker-tag
|
||||||
run: |
|
run: |
|
||||||
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then
|
||||||
tag="${{ steps.branch-name.outputs.tag }}"
|
tag="${{ steps.branch-name.outputs.tag }}"
|
||||||
tag="${tag:1}"
|
tag="${tag:1}"
|
||||||
echo "DOCKER_TAG=${tag}-ee" >> $GITHUB_ENV
|
echo "DOCKER_TAG=${tag}-oss" >> $GITHUB_ENV
|
||||||
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then
|
||||||
echo "DOCKER_TAG=latest-ee" >> $GITHUB_ENV
|
echo "DOCKER_TAG=latest-oss" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}-ee" >> $GITHUB_ENV
|
echo "DOCKER_TAG=${{ steps.branch-name.outputs.current_branch }}-oss" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: Build and push docker image
|
- name: publish-query-service-oss
|
||||||
run: make build-push-frontend
|
run: |
|
||||||
|
SIGNOZ_COMMUNITY_DOCKER_IMAGE=query-service make build-push-signoz-community
|
||||||
|
3
.github/workflows/staging-deployment.yaml
vendored
3
.github/workflows/staging-deployment.yaml
vendored
@ -49,8 +49,7 @@ jobs:
|
|||||||
git fetch origin
|
git fetch origin
|
||||||
git checkout ${GITHUB_BRANCH}
|
git checkout ${GITHUB_BRANCH}
|
||||||
git pull
|
git pull
|
||||||
make build-ee-query-service-amd64
|
make build-signoz-amd64
|
||||||
make build-frontend-amd64
|
|
||||||
make run-testing
|
make run-testing
|
||||||
EOF
|
EOF
|
||||||
gcloud beta compute ssh ${GCP_INSTANCE} --zone ${GCP_ZONE} --ssh-key-expire-after=15m --tunnel-through-iap --project ${GCP_PROJECT} --command "${COMMAND}"
|
gcloud beta compute ssh ${GCP_INSTANCE} --zone ${GCP_ZONE} --ssh-key-expire-after=15m --tunnel-through-iap --project ${GCP_PROJECT} --command "${COMMAND}"
|
||||||
|
3
.github/workflows/testing-deployment.yaml
vendored
3
.github/workflows/testing-deployment.yaml
vendored
@ -49,8 +49,7 @@ jobs:
|
|||||||
# This is added to include the scenerio when new commit in PR is force-pushed
|
# This is added to include the scenerio when new commit in PR is force-pushed
|
||||||
git branch -D ${GITHUB_BRANCH}
|
git branch -D ${GITHUB_BRANCH}
|
||||||
git checkout --track origin/${GITHUB_BRANCH}
|
git checkout --track origin/${GITHUB_BRANCH}
|
||||||
make build-ee-query-service-amd64
|
make build-signoz-amd64
|
||||||
make build-frontend-amd64
|
|
||||||
make run-testing
|
make run-testing
|
||||||
EOF
|
EOF
|
||||||
gcloud beta compute ssh ${GCP_INSTANCE} --zone ${GCP_ZONE} --ssh-key-expire-after=15m --tunnel-through-iap --project ${GCP_PROJECT} --command "${COMMAND}"
|
gcloud beta compute ssh ${GCP_INSTANCE} --zone ${GCP_ZONE} --ssh-key-expire-after=15m --tunnel-through-iap --project ${GCP_PROJECT} --command "${COMMAND}"
|
||||||
|
@ -16,10 +16,8 @@ tasks:
|
|||||||
yarn dev
|
yarn dev
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- port: 3301
|
|
||||||
onOpen: open-browser
|
|
||||||
- port: 8080
|
- port: 8080
|
||||||
onOpen: ignore
|
onOpen: open-browser
|
||||||
- port: 9000
|
- port: 9000
|
||||||
onOpen: ignore
|
onOpen: ignore
|
||||||
- port: 8123
|
- port: 8123
|
||||||
|
166
Makefile
166
Makefile
@ -7,8 +7,10 @@ BUILD_VERSION ?= $(shell git describe --always --tags)
|
|||||||
BUILD_HASH ?= $(shell git rev-parse --short HEAD)
|
BUILD_HASH ?= $(shell git rev-parse --short HEAD)
|
||||||
BUILD_TIME ?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
|
BUILD_TIME ?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||||
BUILD_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
BUILD_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
|
LICENSE_SIGNOZ_IO ?= https://license.signoz.io/api/v1
|
||||||
DEV_LICENSE_SIGNOZ_IO ?= https://staging-license.signoz.io/api/v1
|
DEV_LICENSE_SIGNOZ_IO ?= https://staging-license.signoz.io/api/v1
|
||||||
ZEUS_URL ?= https://api.signoz.cloud
|
ZEUS_URL ?= https://api.signoz.cloud
|
||||||
|
DEV_ZEUS_URL ?= https://api.staging.signoz.cloud
|
||||||
DEV_BUILD ?= "" # set to any non-empty value to enable dev build
|
DEV_BUILD ?= "" # set to any non-empty value to enable dev build
|
||||||
|
|
||||||
# Internal variables or constants.
|
# Internal variables or constants.
|
||||||
@ -18,15 +20,16 @@ EE_QUERY_SERVICE_DIRECTORY ?= ee/query-service
|
|||||||
STANDALONE_DIRECTORY ?= deploy/docker
|
STANDALONE_DIRECTORY ?= deploy/docker
|
||||||
SWARM_DIRECTORY ?= deploy/docker-swarm
|
SWARM_DIRECTORY ?= deploy/docker-swarm
|
||||||
CH_HISTOGRAM_QUANTILE_DIRECTORY ?= scripts/clickhouse/histogramquantile
|
CH_HISTOGRAM_QUANTILE_DIRECTORY ?= scripts/clickhouse/histogramquantile
|
||||||
|
GORELEASER_BIN ?= goreleaser
|
||||||
|
|
||||||
GOOS ?= $(shell go env GOOS)
|
GOOS ?= $(shell go env GOOS)
|
||||||
GOARCH ?= $(shell go env GOARCH)
|
GOARCH ?= $(shell go env GOARCH)
|
||||||
GOPATH ?= $(shell go env GOPATH)
|
GOPATH ?= $(shell go env GOPATH)
|
||||||
|
|
||||||
REPONAME ?= signoz
|
REPONAME ?= signoz
|
||||||
DOCKER_TAG ?= $(subst v,,$(BUILD_VERSION))
|
DOCKER_TAG ?= $(BUILD_VERSION)
|
||||||
FRONTEND_DOCKER_IMAGE ?= frontend
|
SIGNOZ_DOCKER_IMAGE ?= signoz
|
||||||
QUERY_SERVICE_DOCKER_IMAGE ?= query-service
|
SIGNOZ_COMMUNITY_DOCKER_IMAGE ?= signoz-community
|
||||||
|
|
||||||
# Build-time Go variables
|
# Build-time Go variables
|
||||||
PACKAGE?=go.signoz.io/signoz
|
PACKAGE?=go.signoz.io/signoz
|
||||||
@ -37,8 +40,9 @@ gitBranch=${PACKAGE}/pkg/query-service/version.gitBranch
|
|||||||
licenseSignozIo=${PACKAGE}/ee/query-service/constants.LicenseSignozIo
|
licenseSignozIo=${PACKAGE}/ee/query-service/constants.LicenseSignozIo
|
||||||
zeusURL=${PACKAGE}/ee/query-service/constants.ZeusURL
|
zeusURL=${PACKAGE}/ee/query-service/constants.ZeusURL
|
||||||
|
|
||||||
LD_FLAGS=-X ${buildHash}=${BUILD_HASH} -X ${buildTime}=${BUILD_TIME} -X ${buildVersion}=${BUILD_VERSION} -X ${gitBranch}=${BUILD_BRANCH} -X ${zeusURL}=${ZEUS_URL}
|
LD_FLAGS=-X ${buildHash}=${BUILD_HASH} -X ${buildTime}=${BUILD_TIME} -X ${buildVersion}=${BUILD_VERSION} -X ${gitBranch}=${BUILD_BRANCH}
|
||||||
DEV_LD_FLAGS=-X ${licenseSignozIo}=${DEV_LICENSE_SIGNOZ_IO}
|
PROD_LD_FLAGS=-X ${zeusURL}=${ZEUS_URL} -X ${licenseSignozIo}=${LICENSE_SIGNOZ_IO}
|
||||||
|
DEV_LD_FLAGS=-X ${zeusURL}=${DEV_ZEUS_URL} -X ${licenseSignozIo}=${DEV_LICENSE_SIGNOZ_IO}
|
||||||
|
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
@ -75,7 +79,7 @@ run-go: ## Runs the go backend server
|
|||||||
--use-logs-new-schema true \
|
--use-logs-new-schema true \
|
||||||
--use-trace-new-schema true
|
--use-trace-new-schema true
|
||||||
|
|
||||||
all: build-push-frontend build-push-query-service
|
all: build-push-frontend build-push-signoz
|
||||||
|
|
||||||
# Steps to build static files of frontend
|
# Steps to build static files of frontend
|
||||||
build-frontend-static:
|
build-frontend-static:
|
||||||
@ -88,87 +92,67 @@ build-frontend-static:
|
|||||||
yarn build && \
|
yarn build && \
|
||||||
ls -l build
|
ls -l build
|
||||||
|
|
||||||
# Steps to build and push docker image of frontend
|
# Steps to build static binary of signoz
|
||||||
.PHONY: build-frontend-amd64 build-push-frontend
|
.PHONY: build-signoz-static
|
||||||
# Step to build docker image of frontend in amd64 (used in build pipeline)
|
build-signoz-static:
|
||||||
build-frontend-amd64: build-frontend-static
|
|
||||||
@echo "------------------"
|
@echo "------------------"
|
||||||
@echo "--> Building frontend docker image for amd64"
|
@echo "--> Building signoz static binary"
|
||||||
@echo "------------------"
|
|
||||||
@cd $(FRONTEND_DIRECTORY) && \
|
|
||||||
docker build --file Dockerfile -t $(REPONAME)/$(FRONTEND_DOCKER_IMAGE):$(DOCKER_TAG) \
|
|
||||||
--build-arg TARGETPLATFORM="linux/amd64" .
|
|
||||||
|
|
||||||
# Step to build and push docker image of frontend(used in push pipeline)
|
|
||||||
build-push-frontend: build-frontend-static
|
|
||||||
@echo "------------------"
|
|
||||||
@echo "--> Building and pushing frontend docker image"
|
|
||||||
@echo "------------------"
|
|
||||||
@cd $(FRONTEND_DIRECTORY) && \
|
|
||||||
docker buildx build --file Dockerfile --progress plain --push --platform linux/arm64,linux/amd64 \
|
|
||||||
--tag $(REPONAME)/$(FRONTEND_DOCKER_IMAGE):$(DOCKER_TAG) .
|
|
||||||
|
|
||||||
# Steps to build static binary of query service
|
|
||||||
.PHONY: build-query-service-static
|
|
||||||
build-query-service-static:
|
|
||||||
@echo "------------------"
|
|
||||||
@echo "--> Building query-service static binary"
|
|
||||||
@echo "------------------"
|
@echo "------------------"
|
||||||
@if [ $(DEV_BUILD) != "" ]; then \
|
@if [ $(DEV_BUILD) != "" ]; then \
|
||||||
cd $(QUERY_SERVICE_DIRECTORY) && \
|
cd $(EE_QUERY_SERVICE_DIRECTORY) && \
|
||||||
CGO_ENABLED=1 go build -tags timetzdata -a -o ./bin/query-service-${GOOS}-${GOARCH} \
|
CGO_ENABLED=1 go build -tags timetzdata -a -o ./bin/signoz-${GOOS}-${GOARCH} \
|
||||||
-ldflags "-linkmode external -extldflags '-static' -s -w ${LD_FLAGS} ${DEV_LD_FLAGS}"; \
|
-ldflags "-linkmode external -extldflags '-static' -s -w ${LD_FLAGS} ${DEV_LD_FLAGS}"; \
|
||||||
else \
|
else \
|
||||||
cd $(QUERY_SERVICE_DIRECTORY) && \
|
cd $(EE_QUERY_SERVICE_DIRECTORY) && \
|
||||||
CGO_ENABLED=1 go build -tags timetzdata -a -o ./bin/query-service-${GOOS}-${GOARCH} \
|
CGO_ENABLED=1 go build -tags timetzdata -a -o ./bin/signoz-${GOOS}-${GOARCH} \
|
||||||
-ldflags "-linkmode external -extldflags '-static' -s -w ${LD_FLAGS}"; \
|
-ldflags "-linkmode external -extldflags '-static' -s -w ${LD_FLAGS} ${PROD_LD_FLAGS}"; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.PHONY: build-query-service-static-amd64
|
.PHONY: build-signoz-static-amd64
|
||||||
build-query-service-static-amd64:
|
build-signoz-static-amd64:
|
||||||
make GOARCH=amd64 build-query-service-static
|
make GOARCH=amd64 build-signoz-static
|
||||||
|
|
||||||
.PHONY: build-query-service-static-arm64
|
.PHONY: build-signoz-static-arm64
|
||||||
build-query-service-static-arm64:
|
build-signoz-static-arm64:
|
||||||
make CC=aarch64-linux-gnu-gcc GOARCH=arm64 build-query-service-static
|
make CC=aarch64-linux-gnu-gcc GOARCH=arm64 build-signoz-static
|
||||||
|
|
||||||
# Steps to build static binary of query service for all platforms
|
# Steps to build static binary of signoz for all platforms
|
||||||
.PHONY: build-query-service-static-all
|
.PHONY: build-signoz-static-all
|
||||||
build-query-service-static-all: build-query-service-static-amd64 build-query-service-static-arm64 build-frontend-static
|
build-signoz-static-all: build-signoz-static-amd64 build-signoz-static-arm64 build-frontend-static
|
||||||
|
|
||||||
# Steps to build and push docker image of query service
|
# Steps to build and push docker image of signoz
|
||||||
.PHONY: build-query-service-amd64 build-push-query-service
|
.PHONY: build-signoz-amd64 build-push-signoz
|
||||||
# Step to build docker image of query service in amd64 (used in build pipeline)
|
# Step to build docker image of signoz in amd64 (used in build pipeline)
|
||||||
build-query-service-amd64: build-query-service-static-amd64 build-frontend-static
|
build-signoz-amd64: build-signoz-static-amd64 build-frontend-static
|
||||||
@echo "------------------"
|
@echo "------------------"
|
||||||
@echo "--> Building query-service docker image for amd64"
|
@echo "--> Building signoz docker image for amd64"
|
||||||
@echo "------------------"
|
@echo "------------------"
|
||||||
@docker build --file $(QUERY_SERVICE_DIRECTORY)/Dockerfile \
|
@docker build --file $(EE_QUERY_SERVICE_DIRECTORY)/Dockerfile \
|
||||||
--tag $(REPONAME)/$(QUERY_SERVICE_DOCKER_IMAGE):$(DOCKER_TAG) \
|
--tag $(REPONAME)/$(SIGNOZ_DOCKER_IMAGE):$(DOCKER_TAG) \
|
||||||
--build-arg TARGETPLATFORM="linux/amd64" .
|
--build-arg TARGETPLATFORM="linux/amd64" .
|
||||||
|
|
||||||
# Step to build and push docker image of query in amd64 and arm64 (used in push pipeline)
|
# Step to build and push docker image of query in amd64 and arm64 (used in push pipeline)
|
||||||
build-push-query-service: build-query-service-static-all
|
build-push-signoz: build-signoz-static-all
|
||||||
@echo "------------------"
|
@echo "------------------"
|
||||||
@echo "--> Building and pushing query-service docker image"
|
@echo "--> Building and pushing signoz docker image"
|
||||||
@echo "------------------"
|
@echo "------------------"
|
||||||
@docker buildx build --file $(QUERY_SERVICE_DIRECTORY)/Dockerfile --progress plain \
|
@docker buildx build --file $(EE_QUERY_SERVICE_DIRECTORY)/Dockerfile --progress plain \
|
||||||
--push --platform linux/arm64,linux/amd64 \
|
--push --platform linux/arm64,linux/amd64 \
|
||||||
--tag $(REPONAME)/$(QUERY_SERVICE_DOCKER_IMAGE):$(DOCKER_TAG) .
|
--tag $(REPONAME)/$(SIGNOZ_DOCKER_IMAGE):$(DOCKER_TAG) .
|
||||||
|
|
||||||
# Step to build EE docker image of query service in amd64 (used in build pipeline)
|
# Step to build docker image of signoz community in amd64 (used in build pipeline)
|
||||||
build-ee-query-service-amd64:
|
build-signoz-community-amd64:
|
||||||
@echo "------------------"
|
@echo "------------------"
|
||||||
@echo "--> Building query-service docker image for amd64"
|
@echo "--> Building signoz docker image for amd64"
|
||||||
@echo "------------------"
|
@echo "------------------"
|
||||||
make QUERY_SERVICE_DIRECTORY=${EE_QUERY_SERVICE_DIRECTORY} build-query-service-amd64
|
make EE_QUERY_SERVICE_DIRECTORY=${QUERY_SERVICE_DIRECTORY} SIGNOZ_DOCKER_IMAGE=${SIGNOZ_COMMUNITY_DOCKER_IMAGE} build-signoz-amd64
|
||||||
|
|
||||||
# Step to build and push EE docker image of query in amd64 and arm64 (used in push pipeline)
|
# Step to build and push docker image of signoz community in amd64 and arm64 (used in push pipeline)
|
||||||
build-push-ee-query-service:
|
build-push-signoz-community:
|
||||||
@echo "------------------"
|
@echo "------------------"
|
||||||
@echo "--> Building and pushing query-service docker image"
|
@echo "--> Building and pushing signoz community docker image"
|
||||||
@echo "------------------"
|
@echo "------------------"
|
||||||
make QUERY_SERVICE_DIRECTORY=${EE_QUERY_SERVICE_DIRECTORY} build-push-query-service
|
make EE_QUERY_SERVICE_DIRECTORY=${QUERY_SERVICE_DIRECTORY} SIGNOZ_DOCKER_IMAGE=${SIGNOZ_COMMUNITY_DOCKER_IMAGE} build-push-signoz
|
||||||
|
|
||||||
pull-signoz:
|
pull-signoz:
|
||||||
@docker-compose -f $(STANDALONE_DIRECTORY)/docker-compose.yaml pull
|
@docker-compose -f $(STANDALONE_DIRECTORY)/docker-compose.yaml pull
|
||||||
@ -182,22 +166,6 @@ run-testing:
|
|||||||
down-signoz:
|
down-signoz:
|
||||||
@docker-compose -f $(STANDALONE_DIRECTORY)/docker-compose.yaml down -v
|
@docker-compose -f $(STANDALONE_DIRECTORY)/docker-compose.yaml down -v
|
||||||
|
|
||||||
clear-standalone-data:
|
|
||||||
@docker run --rm -v "$(PWD)/$(STANDALONE_DIRECTORY)/data:/pwd" busybox \
|
|
||||||
sh -c "cd /pwd && rm -rf alertmanager/* clickhouse*/* signoz/* zookeeper-*/*"
|
|
||||||
|
|
||||||
clear-swarm-data:
|
|
||||||
@docker run --rm -v "$(PWD)/$(SWARM_DIRECTORY)/data:/pwd" busybox \
|
|
||||||
sh -c "cd /pwd && rm -rf alertmanager/* clickhouse*/* signoz/* zookeeper-*/*"
|
|
||||||
|
|
||||||
clear-standalone-ch:
|
|
||||||
@docker run --rm -v "$(PWD)/$(STANDALONE_DIRECTORY)/data:/pwd" busybox \
|
|
||||||
sh -c "cd /pwd && rm -rf clickhouse*/* zookeeper-*/*"
|
|
||||||
|
|
||||||
clear-swarm-ch:
|
|
||||||
@docker run --rm -v "$(PWD)/$(SWARM_DIRECTORY)/data:/pwd" busybox \
|
|
||||||
sh -c "cd /pwd && rm -rf clickhouse*/* zookeeper-*/*"
|
|
||||||
|
|
||||||
check-no-ee-references:
|
check-no-ee-references:
|
||||||
@echo "Checking for 'ee' package references in 'pkg' directory..."
|
@echo "Checking for 'ee' package references in 'pkg' directory..."
|
||||||
@if grep -R --include="*.go" '.*/ee/.*' pkg/; then \
|
@if grep -R --include="*.go" '.*/ee/.*' pkg/; then \
|
||||||
@ -210,14 +178,42 @@ check-no-ee-references:
|
|||||||
test:
|
test:
|
||||||
go test ./pkg/...
|
go test ./pkg/...
|
||||||
|
|
||||||
goreleaser-snapshot:
|
########################################################
|
||||||
|
# Goreleaser
|
||||||
|
########################################################
|
||||||
|
.PHONY: gor-snapshot gor-snapshot-histogram-quantile gor-snapshot-signoz gor-snapshot-signoz-community gor-split gor-split-histogram-quantile gor-split-signoz gor-split-signoz-community gor-merge
|
||||||
|
|
||||||
|
gor-snapshot:
|
||||||
@if [[ ${GORELEASER_WORKDIR} ]]; then \
|
@if [[ ${GORELEASER_WORKDIR} ]]; then \
|
||||||
cd ${GORELEASER_WORKDIR} && \
|
${GORELEASER_BIN} release --config ${GORELEASER_WORKDIR}/.goreleaser.yaml --clean --snapshot; \
|
||||||
goreleaser release --clean --snapshot; \
|
|
||||||
cd -; \
|
|
||||||
else \
|
else \
|
||||||
goreleaser release --clean --snapshot; \
|
${GORELEASER_BIN} release --clean --snapshot; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
goreleaser-snapshot-histogram-quantile:
|
gor-snapshot-histogram-quantile:
|
||||||
make GORELEASER_WORKDIR=$(CH_HISTOGRAM_QUANTILE_DIRECTORY) goreleaser-snapshot
|
make GORELEASER_WORKDIR=$(CH_HISTOGRAM_QUANTILE_DIRECTORY) goreleaser-snapshot
|
||||||
|
|
||||||
|
gor-snapshot-signoz: build-frontend-static
|
||||||
|
make GORELEASER_WORKDIR=$(EE_QUERY_SERVICE_DIRECTORY) goreleaser-snapshot
|
||||||
|
|
||||||
|
gor-snapshot-signoz-community: build-frontend-static
|
||||||
|
make GORELEASER_WORKDIR=$(QUERY_SERVICE_DIRECTORY) goreleaser-snapshot
|
||||||
|
|
||||||
|
gor-split:
|
||||||
|
@if [[ ${GORELEASER_WORKDIR} ]]; then \
|
||||||
|
${GORELEASER_BIN} release --config ${GORELEASER_WORKDIR}/.goreleaser.yaml --clean --split; \
|
||||||
|
else \
|
||||||
|
${GORELEASER_BIN} release --clean --split; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
gor-split-histogram-quantile:
|
||||||
|
make GORELEASER_WORKDIR=$(CH_HISTOGRAM_QUANTILE_DIRECTORY) goreleaser-split
|
||||||
|
|
||||||
|
gor-split-signoz: build-frontend-static
|
||||||
|
make GORELEASER_WORKDIR=$(EE_QUERY_SERVICE_DIRECTORY) goreleaser-split
|
||||||
|
|
||||||
|
gor-split-signoz-community: build-frontend-static
|
||||||
|
make GORELEASER_WORKDIR=$(QUERY_SERVICE_DIRECTORY) goreleaser-split
|
||||||
|
|
||||||
|
gor-merge:
|
||||||
|
${GORELEASER_BIN} continue --merge
|
||||||
|
4
conf/cache-config.yml
Normal file
4
conf/cache-config.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
provider: "inmemory"
|
||||||
|
inmemory:
|
||||||
|
ttl: 60m
|
||||||
|
cleanupInterval: 10m
|
25
conf/prometheus.yml
Normal file
25
conf/prometheus.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# my global config
|
||||||
|
global:
|
||||||
|
scrape_interval: 5s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
|
||||||
|
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
|
||||||
|
# scrape_timeout is set to the global default (10s).
|
||||||
|
|
||||||
|
# Alertmanager configuration
|
||||||
|
alerting:
|
||||||
|
alertmanagers:
|
||||||
|
- static_configs:
|
||||||
|
- targets:
|
||||||
|
- 127.0.0.1:9093
|
||||||
|
|
||||||
|
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
||||||
|
rule_files:
|
||||||
|
# - "first_rules.yml"
|
||||||
|
# - "second_rules.yml"
|
||||||
|
- 'alerts.yml'
|
||||||
|
|
||||||
|
# A scrape configuration containing exactly one endpoint to scrape:
|
||||||
|
# Here it's Prometheus itself.
|
||||||
|
scrape_configs: []
|
||||||
|
|
||||||
|
remote_read:
|
||||||
|
- url: tcp://localhost:9000/signoz_metrics
|
@ -26,7 +26,7 @@ cd deploy/docker
|
|||||||
docker compose up -d
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
Open http://localhost:3301 in your favourite browser.
|
Open http://localhost:8080 in your favourite browser.
|
||||||
|
|
||||||
To start collecting logs and metrics from your infrastructure, run the following command:
|
To start collecting logs and metrics from your infrastructure, run the following command:
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ cd deploy/docker-swarm
|
|||||||
docker stack deploy -c docker-compose.yaml signoz
|
docker stack deploy -c docker-compose.yaml signoz
|
||||||
```
|
```
|
||||||
|
|
||||||
Open http://localhost:3301 in your favourite browser.
|
Open http://localhost:8080 in your favourite browser.
|
||||||
|
|
||||||
To start collecting logs and metrics from your infrastructure, run the following command:
|
To start collecting logs and metrics from your infrastructure, run the following command:
|
||||||
|
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
map $http_upgrade $connection_upgrade {
|
|
||||||
default upgrade;
|
|
||||||
'' close;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 3301;
|
|
||||||
server_name _;
|
|
||||||
|
|
||||||
gzip on;
|
|
||||||
gzip_static on;
|
|
||||||
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
||||||
gzip_proxied any;
|
|
||||||
gzip_vary on;
|
|
||||||
gzip_comp_level 6;
|
|
||||||
gzip_buffers 16 8k;
|
|
||||||
gzip_http_version 1.1;
|
|
||||||
|
|
||||||
# to handle uri issue 414 from nginx
|
|
||||||
client_max_body_size 24M;
|
|
||||||
large_client_header_buffers 8 128k;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
if ( $uri = '/index.html' ) {
|
|
||||||
add_header Cache-Control no-store always;
|
|
||||||
}
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
index index.html index.htm;
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/api/(v1|v3)/logs/(tail|livetail){
|
|
||||||
proxy_pass http://query-service:8080;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
|
|
||||||
# connection will be closed if no data is read for 600s between successive read operations
|
|
||||||
proxy_read_timeout 600s;
|
|
||||||
|
|
||||||
# dont buffer the data send it directly to client.
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /api {
|
|
||||||
proxy_pass http://query-service:8080/api;
|
|
||||||
# connection will be closed if no data is read for 600s between successive read operations
|
|
||||||
proxy_read_timeout 600s;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /ws {
|
|
||||||
proxy_pass http://query-service:8080/ws;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade "websocket";
|
|
||||||
proxy_set_header Connection "upgrade";
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
}
|
|
||||||
|
|
||||||
# redirect server error pages to the static page /50x.html
|
|
||||||
#
|
|
||||||
error_page 500 502 503 504 /50x.html;
|
|
||||||
location = /50x.html {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1 +1 @@
|
|||||||
server_endpoint: ws://query-service:4320/v1/opamp
|
server_endpoint: ws://signoz:4320/v1/opamp
|
||||||
|
@ -172,19 +172,9 @@ services:
|
|||||||
- ../common/clickhouse/cluster.ha.xml:/etc/clickhouse-server/config.d/cluster.xml
|
- ../common/clickhouse/cluster.ha.xml:/etc/clickhouse-server/config.d/cluster.xml
|
||||||
- ./clickhouse-setup/data/clickhouse-3/:/var/lib/clickhouse/
|
- ./clickhouse-setup/data/clickhouse-3/:/var/lib/clickhouse/
|
||||||
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
||||||
alertmanager:
|
signoz:
|
||||||
!!merge <<: *common
|
|
||||||
image: signoz/alertmanager:0.23.7
|
|
||||||
command:
|
|
||||||
- --queryService.url=http://query-service:8085
|
|
||||||
- --storage.path=/data
|
|
||||||
volumes:
|
|
||||||
- ./clickhouse-setup/data/alertmanager:/data
|
|
||||||
depends_on:
|
|
||||||
- query-service
|
|
||||||
query-service:
|
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/query-service:0.75.0
|
image: signoz/signoz:v0.76.0-rc.3
|
||||||
command:
|
command:
|
||||||
- --config=/root/config/prometheus.yml
|
- --config=/root/config/prometheus.yml
|
||||||
- --use-logs-new-schema=true
|
- --use-logs-new-schema=true
|
||||||
@ -197,14 +187,15 @@ services:
|
|||||||
- ../common/dashboards:/root/config/dashboards
|
- ../common/dashboards:/root/config/dashboards
|
||||||
- ./clickhouse-setup/data/signoz/:/var/lib/signoz/
|
- ./clickhouse-setup/data/signoz/:/var/lib/signoz/
|
||||||
environment:
|
environment:
|
||||||
- ClickHouseUrl=tcp://clickhouse:9000
|
- SIGNOZ_ALERTMANAGER_PROVIDER=signoz
|
||||||
- ALERTMANAGER_API_PREFIX=http://alertmanager:9093/api/
|
- SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN=tcp://clickhouse:9000
|
||||||
- SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
|
- SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
|
||||||
- DASHBOARDS_PATH=/root/config/dashboards
|
- DASHBOARDS_PATH=/root/config/dashboards
|
||||||
- STORAGE=clickhouse
|
- STORAGE=clickhouse
|
||||||
- GODEBUG=netdns=go
|
- GODEBUG=netdns=go
|
||||||
- TELEMETRY_ENABLED=true
|
- TELEMETRY_ENABLED=true
|
||||||
- DEPLOYMENT_TYPE=docker-swarm
|
- DEPLOYMENT_TYPE=docker-swarm
|
||||||
|
- SIGNOZ_JWT_SECRET=secret
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
- CMD
|
- CMD
|
||||||
@ -215,19 +206,9 @@ services:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
frontend:
|
|
||||||
!!merge <<: *common
|
|
||||||
image: signoz/frontend:0.75.0
|
|
||||||
depends_on:
|
|
||||||
- alertmanager
|
|
||||||
- query-service
|
|
||||||
ports:
|
|
||||||
- "3301:3301"
|
|
||||||
volumes:
|
|
||||||
- ../common/signoz/nginx-config.conf:/etc/nginx/conf.d/default.conf
|
|
||||||
otel-collector:
|
otel-collector:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-otel-collector:0.111.29
|
image: signoz/signoz-otel-collector:0.111.30
|
||||||
command:
|
command:
|
||||||
- --config=/etc/otel-collector-config.yaml
|
- --config=/etc/otel-collector-config.yaml
|
||||||
- --manager-config=/etc/manager-config.yaml
|
- --manager-config=/etc/manager-config.yaml
|
||||||
@ -248,10 +229,10 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- clickhouse
|
- clickhouse
|
||||||
- schema-migrator
|
- schema-migrator
|
||||||
- query-service
|
- signoz
|
||||||
schema-migrator:
|
schema-migrator:
|
||||||
!!merge <<: *common
|
!!merge <<: *common
|
||||||
image: signoz/signoz-schema-migrator:0.111.29
|
image: signoz/signoz-schema-migrator:0.111.30
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
@ -266,8 +247,6 @@ networks:
|
|||||||
signoz-net:
|
signoz-net:
|
||||||
name: signoz-net
|
name: signoz-net
|
||||||
volumes:
|
volumes:
|
||||||
alertmanager:
|
|
||||||
name: signoz-alertmanager
|
|
||||||
clickhouse:
|
clickhouse:
|
||||||
name: signoz-clickhouse
|
name: signoz-clickhouse
|
||||||
clickhouse-2:
|
clickhouse-2:
|
||||||
|
@ -108,19 +108,9 @@ services:
|
|||||||
- ../common/clickhouse/cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
|
- ../common/clickhouse/cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
|
||||||
- clickhouse:/var/lib/clickhouse/
|
- clickhouse:/var/lib/clickhouse/
|
||||||
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
||||||
alertmanager:
|
signoz:
|
||||||
!!merge <<: *common
|
|
||||||
image: signoz/alertmanager:0.23.7
|
|
||||||
command:
|
|
||||||
- --queryService.url=http://query-service:8085
|
|
||||||
- --storage.path=/data
|
|
||||||
volumes:
|
|
||||||
- alertmanager:/data
|
|
||||||
depends_on:
|
|
||||||
- query-service
|
|
||||||
query-service:
|
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/query-service:0.75.0
|
image: signoz/signoz:v0.76.0-rc.3
|
||||||
command:
|
command:
|
||||||
- --config=/root/config/prometheus.yml
|
- --config=/root/config/prometheus.yml
|
||||||
- --use-logs-new-schema=true
|
- --use-logs-new-schema=true
|
||||||
@ -133,8 +123,8 @@ services:
|
|||||||
- ../common/dashboards:/root/config/dashboards
|
- ../common/dashboards:/root/config/dashboards
|
||||||
- sqlite:/var/lib/signoz/
|
- sqlite:/var/lib/signoz/
|
||||||
environment:
|
environment:
|
||||||
- ClickHouseUrl=tcp://clickhouse:9000
|
- SIGNOZ_ALERTMANAGER_PROVIDER=signoz
|
||||||
- ALERTMANAGER_API_PREFIX=http://alertmanager:9093/api/
|
- SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN=tcp://clickhouse:9000
|
||||||
- SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
|
- SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
|
||||||
- DASHBOARDS_PATH=/root/config/dashboards
|
- DASHBOARDS_PATH=/root/config/dashboards
|
||||||
- STORAGE=clickhouse
|
- STORAGE=clickhouse
|
||||||
@ -151,19 +141,9 @@ services:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
frontend:
|
|
||||||
!!merge <<: *common
|
|
||||||
image: signoz/frontend:0.75.0
|
|
||||||
depends_on:
|
|
||||||
- alertmanager
|
|
||||||
- query-service
|
|
||||||
ports:
|
|
||||||
- "3301:3301"
|
|
||||||
volumes:
|
|
||||||
- ../common/signoz/nginx-config.conf:/etc/nginx/conf.d/default.conf
|
|
||||||
otel-collector:
|
otel-collector:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-otel-collector:0.111.29
|
image: signoz/signoz-otel-collector:0.111.30
|
||||||
command:
|
command:
|
||||||
- --config=/etc/otel-collector-config.yaml
|
- --config=/etc/otel-collector-config.yaml
|
||||||
- --manager-config=/etc/manager-config.yaml
|
- --manager-config=/etc/manager-config.yaml
|
||||||
@ -184,10 +164,10 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- clickhouse
|
- clickhouse
|
||||||
- schema-migrator
|
- schema-migrator
|
||||||
- query-service
|
- signoz
|
||||||
schema-migrator:
|
schema-migrator:
|
||||||
!!merge <<: *common
|
!!merge <<: *common
|
||||||
image: signoz/signoz-schema-migrator:0.111.29
|
image: signoz/signoz-schema-migrator:0.111.30
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
@ -202,8 +182,6 @@ networks:
|
|||||||
signoz-net:
|
signoz-net:
|
||||||
name: signoz-net
|
name: signoz-net
|
||||||
volumes:
|
volumes:
|
||||||
alertmanager:
|
|
||||||
name: signoz-alertmanager
|
|
||||||
clickhouse:
|
clickhouse:
|
||||||
name: signoz-clickhouse
|
name: signoz-clickhouse
|
||||||
sqlite:
|
sqlite:
|
||||||
|
@ -42,7 +42,7 @@ receivers:
|
|||||||
# please remove names from below if you want to collect logs from them
|
# please remove names from below if you want to collect logs from them
|
||||||
- type: filter
|
- type: filter
|
||||||
id: signoz_logs_filter
|
id: signoz_logs_filter
|
||||||
expr: 'attributes.container_name matches "^(signoz_(logspout|alertmanager|query-service|otel-collector|clickhouse|zookeeper))|(infra_(logspout|otel-agent|otel-metrics)).*"'
|
expr: 'attributes.container_name matches "^(signoz_(logspout|signoz|otel-collector|clickhouse|zookeeper))|(infra_(logspout|otel-agent|otel-metrics)).*"'
|
||||||
processors:
|
processors:
|
||||||
batch:
|
batch:
|
||||||
send_batch_size: 10000
|
send_batch_size: 10000
|
||||||
|
@ -175,36 +175,24 @@ services:
|
|||||||
- ../common/clickhouse/cluster.ha.xml:/etc/clickhouse-server/config.d/cluster.xml
|
- ../common/clickhouse/cluster.ha.xml:/etc/clickhouse-server/config.d/cluster.xml
|
||||||
- clickhouse-3:/var/lib/clickhouse/
|
- clickhouse-3:/var/lib/clickhouse/
|
||||||
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
||||||
alertmanager:
|
signoz:
|
||||||
!!merge <<: *common
|
|
||||||
image: signoz/alertmanager:${ALERTMANAGER_TAG:-0.23.7}
|
|
||||||
container_name: signoz-alertmanager
|
|
||||||
command:
|
|
||||||
- --queryService.url=http://query-service:8085
|
|
||||||
- --storage.path=/data
|
|
||||||
volumes:
|
|
||||||
- alertmanager:/data
|
|
||||||
depends_on:
|
|
||||||
query-service:
|
|
||||||
condition: service_healthy
|
|
||||||
query-service:
|
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/query-service:${DOCKER_TAG:-0.75.0}
|
image: signoz/signoz:${DOCKER_TAG:-v0.76.0-rc.3}
|
||||||
container_name: signoz-query-service
|
container_name: signoz
|
||||||
command:
|
command:
|
||||||
- --config=/root/config/prometheus.yml
|
- --config=/root/config/prometheus.yml
|
||||||
- --use-logs-new-schema=true
|
- --use-logs-new-schema=true
|
||||||
- --use-trace-new-schema=true
|
- --use-trace-new-schema=true
|
||||||
# ports:
|
ports:
|
||||||
# - "3301:8080" # signoz port
|
- "8080:8080" # signoz port
|
||||||
# - "6060:6060" # pprof port
|
# - "6060:6060" # pprof port
|
||||||
volumes:
|
volumes:
|
||||||
- ../common/signoz/prometheus.yml:/root/config/prometheus.yml
|
- ../common/signoz/prometheus.yml:/root/config/prometheus.yml
|
||||||
- ../common/dashboards:/root/config/dashboards
|
- ../common/dashboards:/root/config/dashboards
|
||||||
- sqlite:/var/lib/signoz/
|
- sqlite:/var/lib/signoz/
|
||||||
environment:
|
environment:
|
||||||
- ClickHouseUrl=tcp://clickhouse:9000
|
- SIGNOZ_ALERTMANAGER_PROVIDER=signoz
|
||||||
- ALERTMANAGER_API_PREFIX=http://alertmanager:9093/api/
|
- SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN=tcp://clickhouse:9000
|
||||||
- SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
|
- SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
|
||||||
- DASHBOARDS_PATH=/root/config/dashboards
|
- DASHBOARDS_PATH=/root/config/dashboards
|
||||||
- STORAGE=clickhouse
|
- STORAGE=clickhouse
|
||||||
@ -221,21 +209,10 @@ services:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
frontend:
|
|
||||||
!!merge <<: *common
|
|
||||||
image: signoz/frontend:${DOCKER_TAG:-0.75.0}
|
|
||||||
container_name: signoz-frontend
|
|
||||||
depends_on:
|
|
||||||
- alertmanager
|
|
||||||
- query-service
|
|
||||||
ports:
|
|
||||||
- "3301:3301"
|
|
||||||
volumes:
|
|
||||||
- ../common/signoz/nginx-config.conf:/etc/nginx/conf.d/default.conf
|
|
||||||
# TODO: support otel-collector multiple replicas. Nginx/Traefik for loadbalancing?
|
# TODO: support otel-collector multiple replicas. Nginx/Traefik for loadbalancing?
|
||||||
otel-collector:
|
otel-collector:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-0.111.29}
|
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-0.111.30}
|
||||||
container_name: signoz-otel-collector
|
container_name: signoz-otel-collector
|
||||||
command:
|
command:
|
||||||
- --config=/etc/otel-collector-config.yaml
|
- --config=/etc/otel-collector-config.yaml
|
||||||
@ -257,11 +234,11 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
schema-migrator-sync:
|
schema-migrator-sync:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
query-service:
|
signoz:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
schema-migrator-sync:
|
schema-migrator-sync:
|
||||||
!!merge <<: *common
|
!!merge <<: *common
|
||||||
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.29}
|
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.30}
|
||||||
container_name: schema-migrator-sync
|
container_name: schema-migrator-sync
|
||||||
command:
|
command:
|
||||||
- sync
|
- sync
|
||||||
@ -272,7 +249,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
schema-migrator-async:
|
schema-migrator-async:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.29}
|
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.30}
|
||||||
container_name: schema-migrator-async
|
container_name: schema-migrator-async
|
||||||
command:
|
command:
|
||||||
- async
|
- async
|
||||||
@ -283,8 +260,6 @@ networks:
|
|||||||
signoz-net:
|
signoz-net:
|
||||||
name: signoz-net
|
name: signoz-net
|
||||||
volumes:
|
volumes:
|
||||||
alertmanager:
|
|
||||||
name: signoz-alertmanager
|
|
||||||
clickhouse:
|
clickhouse:
|
||||||
name: signoz-clickhouse
|
name: signoz-clickhouse
|
||||||
clickhouse-2:
|
clickhouse-2:
|
||||||
|
@ -108,22 +108,10 @@ services:
|
|||||||
- ../common/clickhouse/cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
|
- ../common/clickhouse/cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
|
||||||
- clickhouse:/var/lib/clickhouse/
|
- clickhouse:/var/lib/clickhouse/
|
||||||
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
||||||
alertmanager:
|
signoz:
|
||||||
!!merge <<: *common
|
|
||||||
image: signoz/alertmanager:${ALERTMANAGER_TAG:-0.23.7}
|
|
||||||
container_name: signoz-alertmanager
|
|
||||||
command:
|
|
||||||
- --queryService.url=http://query-service:8085
|
|
||||||
- --storage.path=/data
|
|
||||||
volumes:
|
|
||||||
- alertmanager:/data
|
|
||||||
depends_on:
|
|
||||||
query-service:
|
|
||||||
condition: service_healthy
|
|
||||||
query-service:
|
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/query-service:${DOCKER_TAG:-0.75.0}
|
image: signoz/signoz:${DOCKER_TAG:-v0.76.0-rc.3}
|
||||||
container_name: signoz-query-service
|
container_name: signoz
|
||||||
command:
|
command:
|
||||||
- --config=/root/config/prometheus.yml
|
- --config=/root/config/prometheus.yml
|
||||||
- --gateway-url=https://api.staging.signoz.cloud
|
- --gateway-url=https://api.staging.signoz.cloud
|
||||||
@ -137,8 +125,8 @@ services:
|
|||||||
- ../common/dashboards:/root/config/dashboards
|
- ../common/dashboards:/root/config/dashboards
|
||||||
- sqlite:/var/lib/signoz/
|
- sqlite:/var/lib/signoz/
|
||||||
environment:
|
environment:
|
||||||
- ClickHouseUrl=tcp://clickhouse:9000
|
- SIGNOZ_ALERTMANAGER_PROVIDER=signoz
|
||||||
- ALERTMANAGER_API_PREFIX=http://alertmanager:9093/api/
|
- SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN=tcp://clickhouse:9000
|
||||||
- SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
|
- SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
|
||||||
- DASHBOARDS_PATH=/root/config/dashboards
|
- DASHBOARDS_PATH=/root/config/dashboards
|
||||||
- STORAGE=clickhouse
|
- STORAGE=clickhouse
|
||||||
@ -156,20 +144,9 @@ services:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
frontend:
|
|
||||||
!!merge <<: *common
|
|
||||||
image: signoz/frontend:${DOCKER_TAG:-0.75.0}
|
|
||||||
container_name: signoz-frontend
|
|
||||||
depends_on:
|
|
||||||
- alertmanager
|
|
||||||
- query-service
|
|
||||||
ports:
|
|
||||||
- "3301:3301"
|
|
||||||
volumes:
|
|
||||||
- ../common/signoz/nginx-config.conf:/etc/nginx/conf.d/default.conf
|
|
||||||
otel-collector:
|
otel-collector:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-0.111.29}
|
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-0.111.30}
|
||||||
container_name: signoz-otel-collector
|
container_name: signoz-otel-collector
|
||||||
command:
|
command:
|
||||||
- --config=/etc/otel-collector-config.yaml
|
- --config=/etc/otel-collector-config.yaml
|
||||||
@ -187,11 +164,11 @@ services:
|
|||||||
- "4317:4317" # OTLP gRPC receiver
|
- "4317:4317" # OTLP gRPC receiver
|
||||||
- "4318:4318" # OTLP HTTP receiver
|
- "4318:4318" # OTLP HTTP receiver
|
||||||
depends_on:
|
depends_on:
|
||||||
query-service:
|
signoz:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
schema-migrator-sync:
|
schema-migrator-sync:
|
||||||
!!merge <<: *common
|
!!merge <<: *common
|
||||||
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.29}
|
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.30}
|
||||||
container_name: schema-migrator-sync
|
container_name: schema-migrator-sync
|
||||||
command:
|
command:
|
||||||
- sync
|
- sync
|
||||||
@ -203,7 +180,7 @@ services:
|
|||||||
restart: on-failure
|
restart: on-failure
|
||||||
schema-migrator-async:
|
schema-migrator-async:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.29}
|
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.30}
|
||||||
container_name: schema-migrator-async
|
container_name: schema-migrator-async
|
||||||
command:
|
command:
|
||||||
- async
|
- async
|
||||||
@ -214,8 +191,6 @@ networks:
|
|||||||
signoz-net:
|
signoz-net:
|
||||||
name: signoz-net
|
name: signoz-net
|
||||||
volumes:
|
volumes:
|
||||||
alertmanager:
|
|
||||||
name: signoz-alertmanager
|
|
||||||
clickhouse:
|
clickhouse:
|
||||||
name: signoz-clickhouse
|
name: signoz-clickhouse
|
||||||
sqlite:
|
sqlite:
|
||||||
|
@ -108,36 +108,24 @@ services:
|
|||||||
- ../common/clickhouse/cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
|
- ../common/clickhouse/cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
|
||||||
- clickhouse:/var/lib/clickhouse/
|
- clickhouse:/var/lib/clickhouse/
|
||||||
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
||||||
alertmanager:
|
signoz:
|
||||||
!!merge <<: *common
|
|
||||||
image: signoz/alertmanager:${ALERTMANAGER_TAG:-0.23.7}
|
|
||||||
container_name: signoz-alertmanager
|
|
||||||
command:
|
|
||||||
- --queryService.url=http://query-service:8085
|
|
||||||
- --storage.path=/data
|
|
||||||
volumes:
|
|
||||||
- alertmanager:/data
|
|
||||||
depends_on:
|
|
||||||
query-service:
|
|
||||||
condition: service_healthy
|
|
||||||
query-service:
|
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/query-service:${DOCKER_TAG:-0.75.0}
|
image: signoz/signoz:${DOCKER_TAG:-v0.76.0-rc.3}
|
||||||
container_name: signoz-query-service
|
container_name: signoz
|
||||||
command:
|
command:
|
||||||
- --config=/root/config/prometheus.yml
|
- --config=/root/config/prometheus.yml
|
||||||
- --use-logs-new-schema=true
|
- --use-logs-new-schema=true
|
||||||
- --use-trace-new-schema=true
|
- --use-trace-new-schema=true
|
||||||
# ports:
|
ports:
|
||||||
# - "3301:8080" # signoz port
|
- "8080:8080" # signoz port
|
||||||
# - "6060:6060" # pprof port
|
# - "6060:6060" # pprof port
|
||||||
volumes:
|
volumes:
|
||||||
- ../common/signoz/prometheus.yml:/root/config/prometheus.yml
|
- ../common/signoz/prometheus.yml:/root/config/prometheus.yml
|
||||||
- ../common/dashboards:/root/config/dashboards
|
- ../common/dashboards:/root/config/dashboards
|
||||||
- sqlite:/var/lib/signoz/
|
- sqlite:/var/lib/signoz/
|
||||||
environment:
|
environment:
|
||||||
- ClickHouseUrl=tcp://clickhouse:9000
|
- SIGNOZ_ALERTMANAGER_PROVIDER=signoz
|
||||||
- ALERTMANAGER_API_PREFIX=http://alertmanager:9093/api/
|
- SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN=tcp://clickhouse:9000
|
||||||
- SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
|
- SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
|
||||||
- DASHBOARDS_PATH=/root/config/dashboards
|
- DASHBOARDS_PATH=/root/config/dashboards
|
||||||
- STORAGE=clickhouse
|
- STORAGE=clickhouse
|
||||||
@ -154,20 +142,9 @@ services:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
frontend:
|
|
||||||
!!merge <<: *common
|
|
||||||
image: signoz/frontend:${DOCKER_TAG:-0.75.0}
|
|
||||||
container_name: signoz-frontend
|
|
||||||
depends_on:
|
|
||||||
- alertmanager
|
|
||||||
- query-service
|
|
||||||
ports:
|
|
||||||
- "3301:3301"
|
|
||||||
volumes:
|
|
||||||
- ../common/signoz/nginx-config.conf:/etc/nginx/conf.d/default.conf
|
|
||||||
otel-collector:
|
otel-collector:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-0.111.29}
|
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-0.111.30}
|
||||||
container_name: signoz-otel-collector
|
container_name: signoz-otel-collector
|
||||||
command:
|
command:
|
||||||
- --config=/etc/otel-collector-config.yaml
|
- --config=/etc/otel-collector-config.yaml
|
||||||
@ -185,11 +162,11 @@ services:
|
|||||||
- "4317:4317" # OTLP gRPC receiver
|
- "4317:4317" # OTLP gRPC receiver
|
||||||
- "4318:4318" # OTLP HTTP receiver
|
- "4318:4318" # OTLP HTTP receiver
|
||||||
depends_on:
|
depends_on:
|
||||||
query-service:
|
signoz:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
schema-migrator-sync:
|
schema-migrator-sync:
|
||||||
!!merge <<: *common
|
!!merge <<: *common
|
||||||
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.29}
|
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.30}
|
||||||
container_name: schema-migrator-sync
|
container_name: schema-migrator-sync
|
||||||
command:
|
command:
|
||||||
- sync
|
- sync
|
||||||
@ -201,7 +178,7 @@ services:
|
|||||||
restart: on-failure
|
restart: on-failure
|
||||||
schema-migrator-async:
|
schema-migrator-async:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.29}
|
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.30}
|
||||||
container_name: schema-migrator-async
|
container_name: schema-migrator-async
|
||||||
command:
|
command:
|
||||||
- async
|
- async
|
||||||
@ -212,8 +189,6 @@ networks:
|
|||||||
signoz-net:
|
signoz-net:
|
||||||
name: signoz-net
|
name: signoz-net
|
||||||
volumes:
|
volumes:
|
||||||
alertmanager:
|
|
||||||
name: signoz-alertmanager
|
|
||||||
clickhouse:
|
clickhouse:
|
||||||
name: signoz-clickhouse
|
name: signoz-clickhouse
|
||||||
sqlite:
|
sqlite:
|
||||||
|
@ -79,7 +79,7 @@ receivers:
|
|||||||
# please remove names from below if you want to collect logs from them
|
# please remove names from below if you want to collect logs from them
|
||||||
- type: filter
|
- type: filter
|
||||||
id: signoz_logs_filter
|
id: signoz_logs_filter
|
||||||
expr: 'attributes.container_name matches "^(signoz-(|alertmanager|query-service|otel-collector|clickhouse|zookeeper))|(infra-(logspout|otel-agent)-.*)"'
|
expr: 'attributes.container_name matches "^signoz|(signoz-(|otel-collector|clickhouse|zookeeper))|(infra-(logspout|otel-agent)-.*)"'
|
||||||
processors:
|
processors:
|
||||||
batch:
|
batch:
|
||||||
send_batch_size: 10000
|
send_batch_size: 10000
|
||||||
|
@ -127,7 +127,7 @@ check_os() {
|
|||||||
# The script should error out in case they aren't available
|
# The script should error out in case they aren't available
|
||||||
check_ports_occupied() {
|
check_ports_occupied() {
|
||||||
local port_check_output
|
local port_check_output
|
||||||
local ports_pattern="3301|4317"
|
local ports_pattern="8080|4317"
|
||||||
|
|
||||||
if is_mac; then
|
if is_mac; then
|
||||||
port_check_output="$(netstat -anp tcp | awk '$6 == "LISTEN" && $4 ~ /^.*\.('"$ports_pattern"')$/')"
|
port_check_output="$(netstat -anp tcp | awk '$6 == "LISTEN" && $4 ~ /^.*\.('"$ports_pattern"')$/')"
|
||||||
@ -144,7 +144,7 @@ check_ports_occupied() {
|
|||||||
send_event "port_not_available"
|
send_event "port_not_available"
|
||||||
|
|
||||||
echo "+++++++++++ ERROR ++++++++++++++++++++++"
|
echo "+++++++++++ ERROR ++++++++++++++++++++++"
|
||||||
echo "SigNoz requires ports 3301 & 4317 to be open. Please shut down any other service(s) that may be running on these ports."
|
echo "SigNoz requires ports 8080 & 4317 to be open. Please shut down any other service(s) that may be running on these ports."
|
||||||
echo "You can run SigNoz on another port following this guide https://signoz.io/docs/install/troubleshooting/"
|
echo "You can run SigNoz on another port following this guide https://signoz.io/docs/install/troubleshooting/"
|
||||||
echo "++++++++++++++++++++++++++++++++++++++++"
|
echo "++++++++++++++++++++++++++++++++++++++++"
|
||||||
echo ""
|
echo ""
|
||||||
@ -248,7 +248,7 @@ wait_for_containers_start() {
|
|||||||
|
|
||||||
# The while loop is important because for-loops don't work for dynamic values
|
# The while loop is important because for-loops don't work for dynamic values
|
||||||
while [[ $timeout -gt 0 ]]; do
|
while [[ $timeout -gt 0 ]]; do
|
||||||
status_code="$(curl -s -o /dev/null -w "%{http_code}" "http://localhost:3301/api/v1/health?live=1" || true)"
|
status_code="$(curl -s -o /dev/null -w "%{http_code}" "http://localhost:8080/api/v1/health?live=1" || true)"
|
||||||
if [[ status_code -eq 200 ]]; then
|
if [[ status_code -eq 200 ]]; then
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
@ -484,7 +484,7 @@ pushd "${BASE_DIR}/${DOCKER_STANDALONE_DIR}" > /dev/null 2>&1
|
|||||||
|
|
||||||
# check for open ports, if signoz is not installed
|
# check for open ports, if signoz is not installed
|
||||||
if is_command_present docker-compose; then
|
if is_command_present docker-compose; then
|
||||||
if $sudo_cmd $docker_compose_cmd ps | grep "signoz-query-service" | grep -q "healthy" > /dev/null 2>&1; then
|
if $sudo_cmd $docker_compose_cmd ps | grep "signoz" | grep -q "healthy" > /dev/null 2>&1; then
|
||||||
echo "SigNoz already installed, skipping the occupied ports check"
|
echo "SigNoz already installed, skipping the occupied ports check"
|
||||||
else
|
else
|
||||||
check_ports_occupied
|
check_ports_occupied
|
||||||
@ -533,7 +533,7 @@ else
|
|||||||
echo ""
|
echo ""
|
||||||
echo "🟢 Your installation is complete!"
|
echo "🟢 Your installation is complete!"
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "🟢 Your frontend is running on http://localhost:3301"
|
echo -e "🟢 SigNoz is running on http://localhost:8080"
|
||||||
echo ""
|
echo ""
|
||||||
echo "ℹ️ By default, retention period is set to 15 days for logs and traces, and 30 days for metrics."
|
echo "ℹ️ By default, retention period is set to 15 days for logs and traces, and 30 days for metrics."
|
||||||
echo -e "To change this, navigate to the General tab on the Settings page of SigNoz UI. For more details, refer to https://signoz.io/docs/userguide/retention-period \n"
|
echo -e "To change this, navigate to the General tab on the Settings page of SigNoz UI. For more details, refer to https://signoz.io/docs/userguide/retention-period \n"
|
||||||
|
70
ee/query-service/.goreleaser.yaml
Normal file
70
ee/query-service/.goreleaser.yaml
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
|
||||||
|
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
project_name: signoz
|
||||||
|
|
||||||
|
before:
|
||||||
|
hooks:
|
||||||
|
- go mod tidy
|
||||||
|
|
||||||
|
builds:
|
||||||
|
- id: signoz
|
||||||
|
binary: bin/signoz
|
||||||
|
main: ee/query-service/main.go
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=1
|
||||||
|
- >-
|
||||||
|
{{- if eq .Os "linux" }}
|
||||||
|
{{- if eq .Arch "arm64" }}CC=aarch64-linux-gnu-gcc{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
- darwin
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
goamd64:
|
||||||
|
- v1
|
||||||
|
goarm64:
|
||||||
|
- v8.0
|
||||||
|
ldflags:
|
||||||
|
- -s -w
|
||||||
|
- -X github.com/SigNoz/signoz/pkg/query-service/version.version={{ .Version }}
|
||||||
|
- -X main.commit={{ .Commit }} -X main.date={{ .CommitDate }}
|
||||||
|
- -X main.builtBy=goreleaser
|
||||||
|
- -X go.signoz.io/signoz/pkg/query-service/version.buildVersion={{ .Version }}
|
||||||
|
- -X go.signoz.io/signoz/pkg/query-service/version.buildHash={{ .ShortCommit }}
|
||||||
|
- -X go.signoz.io/signoz/pkg/query-service/version.buildTime={{ .Date }}
|
||||||
|
- -X go.signoz.io/signoz/pkg/query-service/version.gitBranch={{ .Branch }}
|
||||||
|
- -X go.signoz.io/signoz/ee/query-service/constants.ZeusURL=https://api.signoz.cloud
|
||||||
|
- -X go.signoz.io/signoz/ee/query-service/constants.LicenseSignozIo=https://license.signoz.io/api/v1
|
||||||
|
- >-
|
||||||
|
{{- if eq .Os "linux" }}-linkmode external -extldflags '-static'{{- end }}
|
||||||
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
||||||
|
tags:
|
||||||
|
- timetzdata
|
||||||
|
|
||||||
|
archives:
|
||||||
|
- formats:
|
||||||
|
- tar.gz
|
||||||
|
name_template: >-
|
||||||
|
{{ .ProjectName }}_{{- .Os }}_{{- .Arch }}
|
||||||
|
wrap_in_directory: true
|
||||||
|
strip_binary_directory: false
|
||||||
|
files:
|
||||||
|
- src: README.md
|
||||||
|
dst: README.md
|
||||||
|
- src: LICENSE
|
||||||
|
dst: LICENSE
|
||||||
|
- src: frontend/build
|
||||||
|
dst: web
|
||||||
|
- src: conf
|
||||||
|
dst: conf
|
||||||
|
- src: templates
|
||||||
|
dst: templates
|
||||||
|
|
||||||
|
release:
|
||||||
|
name_template: "v{{ .Version }}"
|
||||||
|
draft: false
|
||||||
|
prerelease: auto
|
@ -13,21 +13,21 @@ RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
|
|||||||
# set working directory
|
# set working directory
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
# copy the query-service binary
|
# copy the signoz binary
|
||||||
COPY ee/query-service/bin/query-service-${TARGETOS}-${TARGETARCH} /root/query-service
|
COPY ee/query-service/bin/signoz-${TARGETOS}-${TARGETARCH} /root/signoz
|
||||||
|
|
||||||
# copy prometheus YAML config
|
# copy prometheus YAML config
|
||||||
COPY pkg/query-service/config/prometheus.yml /root/config/prometheus.yml
|
COPY pkg/query-service/config/prometheus.yml /root/config/prometheus.yml
|
||||||
COPY pkg/query-service/templates /root/templates
|
COPY pkg/query-service/templates /root/templates
|
||||||
|
|
||||||
# Make query-service executable for non-root users
|
# Make signoz executable for non-root users
|
||||||
RUN chmod 755 /root /root/query-service
|
RUN chmod 755 /root /root/signoz
|
||||||
|
|
||||||
# Copy frontend
|
# Copy frontend
|
||||||
COPY frontend/build/ /etc/signoz/web/
|
COPY frontend/build/ /etc/signoz/web/
|
||||||
|
|
||||||
# run the binary
|
# run the binary
|
||||||
ENTRYPOINT ["./query-service"]
|
ENTRYPOINT ["./signoz"]
|
||||||
|
|
||||||
CMD ["-config", "/root/config/prometheus.yml"]
|
CMD ["-config", "/root/config/prometheus.yml"]
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultSiteURL = "https://localhost:3301"
|
DefaultSiteURL = "https://localhost:8080"
|
||||||
)
|
)
|
||||||
|
|
||||||
var LicenseSignozIo = "https://license.signoz.io/api/v1"
|
var LicenseSignozIo = "https://license.signoz.io/api/v1"
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
node_modules
|
|
||||||
.vscode
|
|
||||||
.git
|
|
@ -1,18 +0,0 @@
|
|||||||
FROM nginx:1.26-alpine
|
|
||||||
|
|
||||||
# Add Maintainer Info
|
|
||||||
LABEL maintainer="signoz"
|
|
||||||
|
|
||||||
# Set working directory
|
|
||||||
WORKDIR /frontend
|
|
||||||
|
|
||||||
# Remove default nginx index page
|
|
||||||
RUN rm -rf /usr/share/nginx/html/*
|
|
||||||
|
|
||||||
# Copy custom nginx config and static files
|
|
||||||
COPY conf/default.conf /etc/nginx/conf.d/default.conf
|
|
||||||
COPY build /usr/share/nginx/html
|
|
||||||
|
|
||||||
EXPOSE 3301
|
|
||||||
|
|
||||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
|
@ -1,33 +0,0 @@
|
|||||||
server {
|
|
||||||
listen 3301;
|
|
||||||
server_name _;
|
|
||||||
|
|
||||||
gzip on;
|
|
||||||
gzip_static on;
|
|
||||||
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
||||||
gzip_proxied any;
|
|
||||||
gzip_vary on;
|
|
||||||
gzip_comp_level 6;
|
|
||||||
gzip_buffers 16 8k;
|
|
||||||
gzip_http_version 1.1;
|
|
||||||
|
|
||||||
# to handle uri issue 414 from nginx
|
|
||||||
client_max_body_size 24M;
|
|
||||||
large_client_header_buffers 8 128k;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
index index.html index.htm;
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
location = /api {
|
|
||||||
proxy_pass http://signoz-query-service:8080/api;
|
|
||||||
}
|
|
||||||
|
|
||||||
# redirect server error pages to the static page /50x.html
|
|
||||||
#
|
|
||||||
error_page 500 502 503 504 /50x.html;
|
|
||||||
location = /50x.html {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
version: "3.9"
|
|
||||||
services:
|
|
||||||
web:
|
|
||||||
build: .
|
|
||||||
image: signoz/frontend:latest
|
|
||||||
ports:
|
|
||||||
- "3301:3301"
|
|
@ -1,7 +1,7 @@
|
|||||||
NODE_ENV="development"
|
NODE_ENV="development"
|
||||||
BUNDLE_ANALYSER="true"
|
BUNDLE_ANALYSER="true"
|
||||||
FRONTEND_API_ENDPOINT="http://localhost:3301/"
|
FRONTEND_API_ENDPOINT="http://localhost:8080/"
|
||||||
INTERCOM_APP_ID="intercom-app-id"
|
INTERCOM_APP_ID="intercom-app-id"
|
||||||
|
|
||||||
PLAYWRIGHT_TEST_BASE_URL="http://localhost:3301"
|
PLAYWRIGHT_TEST_BASE_URL="http://localhost:8080"
|
||||||
CI="1"
|
CI="1"
|
68
pkg/query-service/.goreleaser.yaml
Normal file
68
pkg/query-service/.goreleaser.yaml
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
|
||||||
|
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
project_name: signoz-community
|
||||||
|
|
||||||
|
before:
|
||||||
|
hooks:
|
||||||
|
- go mod tidy
|
||||||
|
|
||||||
|
builds:
|
||||||
|
- id: signoz
|
||||||
|
binary: bin/signoz
|
||||||
|
main: pkg/query-service/main.go
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=1
|
||||||
|
- >-
|
||||||
|
{{- if eq .Os "linux" }}
|
||||||
|
{{- if eq .Arch "arm64" }}CC=aarch64-linux-gnu-gcc{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
- darwin
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
goamd64:
|
||||||
|
- v1
|
||||||
|
goarm64:
|
||||||
|
- v8.0
|
||||||
|
ldflags:
|
||||||
|
- -s -w
|
||||||
|
- -X github.com/SigNoz/signoz/pkg/query-service/version.version={{ .Version }}
|
||||||
|
- -X main.commit={{ .Commit }} -X main.date={{ .CommitDate }}
|
||||||
|
- -X main.builtBy=goreleaser
|
||||||
|
- -X go.signoz.io/signoz/pkg/query-service/version.buildVersion={{ .Version }}
|
||||||
|
- -X go.signoz.io/signoz/pkg/query-service/version.buildHash={{ .ShortCommit }}
|
||||||
|
- -X go.signoz.io/signoz/pkg/query-service/version.buildTime={{ .Date }}
|
||||||
|
- -X go.signoz.io/signoz/pkg/query-service/version.gitBranch={{ .Branch }}
|
||||||
|
- >-
|
||||||
|
{{- if eq .Os "linux" }}-linkmode external -extldflags '-static'{{- end }}
|
||||||
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
||||||
|
tags:
|
||||||
|
- timetzdata
|
||||||
|
|
||||||
|
archives:
|
||||||
|
- formats:
|
||||||
|
- tar.gz
|
||||||
|
name_template: >-
|
||||||
|
{{ .ProjectName }}_{{- .Os }}_{{- .Arch }}
|
||||||
|
wrap_in_directory: true
|
||||||
|
strip_binary_directory: false
|
||||||
|
files:
|
||||||
|
- src: README.md
|
||||||
|
dst: README.md
|
||||||
|
- src: LICENSE
|
||||||
|
dst: LICENSE
|
||||||
|
- src: frontend/build
|
||||||
|
dst: web
|
||||||
|
- src: conf
|
||||||
|
dst: conf
|
||||||
|
- src: templates
|
||||||
|
dst: templates
|
||||||
|
|
||||||
|
release:
|
||||||
|
name_template: "v{{ .Version }}"
|
||||||
|
draft: false
|
||||||
|
prerelease: auto
|
@ -13,21 +13,24 @@ RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
|
|||||||
# set working directory
|
# set working directory
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
# copy the query-service binary
|
# copy the signoz binary
|
||||||
COPY pkg/query-service/bin/query-service-${TARGETOS}-${TARGETARCH} /root/query-service
|
COPY pkg/query-service/bin/signoz-${TARGETOS}-${TARGETARCH} /root/signoz
|
||||||
|
|
||||||
# copy prometheus YAML config
|
# copy prometheus YAML config
|
||||||
COPY pkg/query-service/config/prometheus.yml /root/config/prometheus.yml
|
COPY pkg/query-service/config/prometheus.yml /root/config/prometheus.yml
|
||||||
COPY pkg/query-service/templates /root/templates
|
COPY pkg/query-service/templates /root/templates
|
||||||
|
|
||||||
# Make query-service executable for non-root users
|
# Make signoz executable for non-root users
|
||||||
RUN chmod 755 /root /root/query-service
|
RUN chmod 755 /root /root/signoz
|
||||||
|
|
||||||
|
# Copy frontend
|
||||||
|
COPY frontend/build/ /etc/signoz/web/
|
||||||
|
|
||||||
# Copy frontend
|
# Copy frontend
|
||||||
COPY frontend/build/ /etc/signoz/web/
|
COPY frontend/build/ /etc/signoz/web/
|
||||||
|
|
||||||
# run the binary
|
# run the binary
|
||||||
ENTRYPOINT ["./query-service"]
|
ENTRYPOINT ["./signoz"]
|
||||||
|
|
||||||
CMD ["-config", "/root/config/prometheus.yml"]
|
CMD ["-config", "/root/config/prometheus.yml"]
|
||||||
|
|
||||||
|
@ -10,16 +10,12 @@ monorepo:
|
|||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
- cp ../../../LICENSE .
|
|
||||||
- cp ../../../README.md .
|
|
||||||
|
|
||||||
after:
|
|
||||||
hooks:
|
|
||||||
- rm LICENSE
|
|
||||||
- rm README.md
|
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- env:
|
- id: signoz
|
||||||
|
binary: bin/histogram-quantile
|
||||||
|
main: scripts/clickhouse/histogramquantile/main.go
|
||||||
|
env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
@ -27,6 +23,10 @@ builds:
|
|||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
|
goamd64:
|
||||||
|
- v1
|
||||||
|
goarm64:
|
||||||
|
- v8.0
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- formats:
|
- formats:
|
||||||
@ -38,8 +38,4 @@ archives:
|
|||||||
- LICENSE
|
- LICENSE
|
||||||
|
|
||||||
release:
|
release:
|
||||||
footer: >-
|
name_template: "histogram-quantile/v{{ .Version }}"
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
|
|
||||||
|
14
templates/email/invitation_email_template.html
Normal file
14
templates/email/invitation_email_template.html
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<p>Hi {{.CustomerName}},</p>
|
||||||
|
<p>You have been invited to join SigNoz project by {{.InviterName}} ({{.InviterEmail}}).</p>
|
||||||
|
<p>Please click on the following button to accept the invitation:</p>
|
||||||
|
<a href="{{.Link}}" style="background-color: #000000; color: white; padding: 14px 20px; text-align: center; text-decoration: none; display: inline-block;">Accept Invitation</a>
|
||||||
|
<p>Button not working? Paste the following link into your browser:</p>
|
||||||
|
<p>{{.Link}}</p>
|
||||||
|
<p>Follow docs here 👉 to <a href="https://signoz.io/docs/cloud/">Get Started with SigNoz Cloud</a></p>
|
||||||
|
<p>Thanks,</p>
|
||||||
|
<p>SigNoz Team</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user