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
ci(k3s): k3s CI workflow enhancements (#643)
Prashant Shahidcb17fb33a5c
diff --git a/.github/workflows/e2e-k3s.yaml b/.github/workflows/e2e-k3s.yamlindex dcd819a570..41bea93c8e 100644--- a/.github/workflows/e2e-k3s.yaml+++ b/.github/workflows/e2e-k3s.yaml@@ -14,48 +14,72 @@ jobs:steps:- name: Checkout codeuses: actions/checkout@v2+- name: Build query-service imagerun: make build-query-service-amd64+- name: Build frontend imagerun: make build-frontend-amd64+- name: Create a k3s clusteruses: AbsaOSS/k3d-action@v2with:cluster-name: "signoz"+- name: Inject the images to the clusterrun: k3d image import signoz/query-service:$DOCKER_TAG signoz/frontend:$DOCKER_TAG -c signoz+- name: Deploy the apprun: |- helm dependency update deploy/kubernetes/platform- helm install signoz deploy/kubernetes/platform/ -n platform --create-namespace \- --wait --timeout 10m0s \+ # add signoz helm repository+ helm repo add signoz https://charts.signoz.io++ # create platform namespace+ kubectl create ns platform++ # installing signoz using helm+ helm install my-release signoz/signoz -n platform \+ --wait \+ --timeout 10m0s \--set cloud=null \--set frontend.service.type=LoadBalancer \--set query-service.image.tag=$DOCKER_TAG \--set frontend.image.tag=$DOCKER_TAG- kubectl describe deploy/signoz-frontend -n platform | grep Image- kubectl describe statefulset/signoz-query-service -n platform | grep Image++ # get pods, services and the container images+ kubectl describe deploy/frontend -n platform | grep Image+ kubectl describe statefulset/query-service -n platform | grep Imagekubectl get pods -n platformkubectl get svc -n platform+- name: Kick off a sample-app workloadrun: |+ # create sample-application namespacekubectl create ns sample-application- kubectl -n sample-application apply -Rf sample-apps/hotrod/++ # apply hotrod k8s manifest file+ kubectl -n sample-application apply -f https://github.com/SigNoz/signoz/blob/main/sample-apps/hotrod/hotrod.yaml++ # wait for all deployments in sample-application namespace to be READYkubectl -n sample-application get deploy --output name | xargs -r -n1 -t kubectl -n sample-application rollout status --timeout=300s- #TODO: we can remove that sleep once the sample app readiness prob is fixed.- sleep 300 # if we don't wait the curl command return success but doesn't kick-of the requests++ # start the locust swarmkubectl -n sample-application run strzal --image=djbingham/curl \--restart='OnFailure' -i --rm --command -- curl -X POST -F \'locust_count=6' -F 'hatch_rate=2' http://locust-master:8089/swarm- sleep 600 # give some time for the data to reach signoz- - name: Get commit short sha- uses: benjlevesque/[email protected]- id: short-sha++ - name: Get short commit SHA and display tunnel URL+ id: get-subdomain+ run: |+ subdomain="pr-$(git rev-parse --short HEAD)"+ echo "URL for tunnelling: https://$subdomain.loca.lt"+ echo "::set-output name=subdomain::$subdomain"+- name: Start tunnelenv:- COMMIT_SHA: pr-${{ steps.short-sha.outputs.sha }}+ SUBDOMAIN: ${{ steps.get-subdomain.outputs.subdomain }}run: |npm install -g localtunnel- host=$(kubectl get svc -n platform | grep signoz-frontend | tr -s ' ' | cut -d" " -f4)- port=$(kubectl get svc -n platform | grep signoz-frontend | tr -s ' ' | cut -d" " -f5 | cut -d":" -f1)- lt -p $port -l $host -s $COMMIT_SHA+ host=$(kubectl get svc -n platform | grep frontend | tr -s ' ' | cut -d" " -f4)+ port=$(kubectl get svc -n platform | grep frontend | tr -s ' ' | cut -d" " -f5 | cut -d":" -f1)+ lt -p $port -l $host -s $SUBDOMAIN