Deploying to GCP
First, we need to set up a Kubernetes cluster (see the official GCP documentation for more info).
Follow the steps on this page to install SigNoz on Kubernetes with Helm.
The SigNoz Helm chart will install the following components into your Kubernetes cluster:
- Query Service (backend service)
- Web UI (frontend)
- ClickHouse (datastore)
- OpenTelemetry collector
- Alertmanager
Prerequisites​
- You must have a GKE cluster
Kubernetes version >=
1.20x86-64/amd64workloads as currentlyarm64architecture is not supportedYou must have
kubectlaccess to your clusterThe following table describes the hardware requirements that are needed to install SigNoz on Kubernetes:
Component Minimal Requirements Recommended Memory 4 GB 16 GB CPU 2 cores 4 cores Storage 10 GB 50 GB
Chart configuration​
Here's the minimal required override-values.yaml that we'll be using later. You can find
an overview of the parameters that can be configured during installation under
chart configuration.
clickhouse:
cloud: gcp
installCustomStorageClass: true
persistence:
storageClass: gce-resizable
Install SigNoz on Kubernetes with Helm​
- Add the SigNoz Helm repository to your client with name
signozby running the following command:
helm repo add signoz https://charts.signoz.io
- Verify that the repository is accessible to the Helm CLI by entering the following command:
helm repo list
- Use the
kubectl create nscommand to create a new namespace. SigNoz recommends you useplatformfor your new namespace:
kubectl create ns platform
- Run the following command to install the chart with the release name
my-releaseand namespaceplatform:
helm --namespace platform install my-release signoz/signoz -f override-values.yaml
Output:
NAME: my-release
LAST DEPLOYED: Mon May 23 20:34:55 2022
NAMESPACE: platform
STATUS: deployed
REVISION: 1
NOTES:
1. You have just deployed SigNoz cluster:
- frontend version: '0.8.0'
- query-service version: '0.8.0'
- alertmanager version: '0.23.0-0.1'
- otel-collector version: '0.43.0-0.1'
- otel-collector-metrics version: '0.43.0-0.1'
*Note that the above command installs the latest stable version of SigNoz.
(Optional) To install a different version, you can use the --set flag to specify the version you wish to install. The following example command installs SigNoz version 0.8.0:
helm --namespace platform install my-release signoz/signoz \
--set frontend.image.tag="0.8.0" \
--set queryService.image.tag="0.8.0"
info
- If you use the
--setflag, ensure that you specify the same versions for thefrontendandqueryServiceimages. Specifying different versions could lead the SigNoz cluster to behave abnormally. - Do not use the
latestordeveloptags in a production environment. Specifying these tags could install different versions of SigNoz on your cluster and could lead to data loss.
- You can access SigNoz by setting up port forwarding and browsing to the specified port. The following
kubectl port-forwardexample command forwards all connections made tolocalhost:3301to<signoz-frontend-service>:3301:
export SERVICE_NAME=$(kubectl get svc --namespace platform -l "app.kubernetes.io/component=frontend" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace platform port-forward svc/$SERVICE_NAME 3301:3301
Verify the Installation​
Using the kubectl -n platform get pods command, monitor the SigNoz deployment process.
Wait for all the pods to be in running state:
kubectl -n platform get pods
Output:
NAME READY STATUS RESTARTS AGE
chi-signoz-cluster-0-0-0 1/1 Running 0 8m21s
clickhouse-operator-8cff468-n5s99 2/2 Running 0 8m55s
my-release-signoz-alertmanager-0 1/1 Running 0 8m54s
my-release-signoz-frontend-78774f44d7-wl87p 1/1 Running 0 8m55s
my-release-signoz-otel-collector-66c8c7dc9d-d8v5c 1/1 Running 0 8m55s
my-release-signoz-otel-collector-metrics-68bcfd5556-9tkgh 1/1 Running 0 8m55s
my-release-signoz-query-service-0 1/1 Running 0 8m54s
my-release-zookeeper-0 1/1 Running 0 8m54s
(Optional) Install a Sample Application and Generate Tracing Data​
Follow the steps in this section to install a sample application named HotR.O.D, and generate tracing data.
- Use the HotROD install script below to create a
sample-applicationnamespace and deploy HotROD application on it:
curl -sL https://github.com/SigNoz/signoz/raw/main/sample-apps/hotrod/hotrod-install.sh \
| HELM_RELEASE=my-release SIGNOZ_NAMESPACE=platform bash
- Use the following command to generate load:
kubectl --namespace sample-application run strzal --image=djbingham/curl \
--restart='OnFailure' -i --tty --rm --command -- curl -X POST -F \
'locust_count=6' -F 'hatch_rate=2' http://locust-master:8089/swarm
Browse to
http://localhost:3301and see the metrics and traces for your sample application.Use the following command to stop load generation:
kubectl -n sample-application run strzal --image=djbingham/curl \
--restart='OnFailure' -i --tty --rm --command -- curl \
http://locust-master:8089/stop
Go to Kubernetes Operate section for detailed instructions.