GCP Quickstart Guide
This quickstart guide will help you get Causely up and running on GCP. This setup deploys Causely in your Kubernetes cluster (including GKE) with eBPF instrumentation enabled, and connects it to your GCP project to monitor cloud resources.
Get Your Installation Command
- Log in to the Causely portal.
- Visit the mediators page.
- Click the "Add new" button (or "Add ➕" button) on the mediators page.
- In the instructions panel, you'll see the Helm installation command with your access token pre-filled.
- Copy the complete Helm command. It will look similar to the example below.
The command you copy will include your specific access token and cluster name. Here's what it typically looks like:
export CAUSELY_TOKEN=<your_token>
export CAUSELY_CLUSTER_NAME=<your_cluster_name>
export CAUSELY_VERSION=<version>
helm upgrade --install causely \\
--create-namespace oci://us-docker.pkg.dev/public-causely/public/causely \\
--version "${CAUSELY_VERSION}" \\
--namespace=causely \\
--set image.tag="${CAUSELY_VERSION}" \\
--set global.cluster_name="\${CAUSELY_CLUSTER_NAME}" \\
--set mediator.gateway.token="\${CAUSELY_TOKEN}"
Screenshots of the mediators page, "Add new" button, and instructions panel will be added here.
Run the Installation Command
- Open a terminal with
kubectlconfigured to access your Kubernetes cluster. - Paste and run the Helm command you copied from the portal.
- Wait for the installation to complete:
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/part-of=causely -n causely --timeout=300s
By default, Causely will use eBPF-based instrumentation to automatically instrument your applications running in Kubernetes. This provides zero-effort observability without code changes.
Connect Your GCP Project
Now you need to configure Causely to monitor your GCP resources. You'll need a Service Account with Viewer permissions on the projects you want to monitor.
Step 5a: Create a Service Account
Use the gcloud CLI to create a Service Account:
gcloud iam service-accounts create causely \
--description="Causely service account" \
--display-name="Causely"
gcloud projects add-iam-policy-binding PROJECT_ID \
--member="serviceAccount:causely@PROJECT_ID.iam.gserviceaccount.com" \
--role="roles/viewer"
gcloud projects add-iam-policy-binding PROJECT_ID \
--member="serviceAccount:causely@PROJECT_ID.iam.gserviceaccount.com" \
--role="roles/monitoring.viewer"
gcloud projects add-iam-policy-binding PROJECT_ID \
--member="serviceAccount:causely@PROJECT_ID.iam.gserviceaccount.com" \
--role="roles/bigtable.viewer"
Step 5b: Create and Download Service Account Key
Create a key for the Service Account and download it:
gcloud iam service-accounts keys create service_account.json \
--iam-account=causely@PROJECT_ID.iam.gserviceaccount.com
Step 5c: Create a Kubernetes Secret
Save the Service Account credentials in a Kubernetes Secret:
kubectl create secret --namespace causely generic gcp-credentials \
--from-file=service_account.json=service_account.json \
--from-literal=project_id=PROJECT_ID
Step 5d: Update Causely Configuration
Update your causely-values.yaml to enable GCP scraping:
global:
cluster_name: <your_cluster_name>
mediator:
gateway:
token: <your_token>
scrapers:
gcp:
enabled: true
projects:
- secretName: gcp-credentials
namespace: causely
Then upgrade your installation:
helm upgrade --install causely \\
--namespace=causely \\
--values causely-values.yaml \\
oci://us-docker.pkg.dev/public-causely/public/causely \\
--version "${CAUSELY_VERSION}"
You can also use credentials autodiscovery by labeling the secret:
kubectl --namespace causely label secret gcp-credentials "causely.ai/scraper=GCP"
This allows you to add new projects without editing the configuration. See the GCP integration documentation for more details.
For complete setup instructions and information about which GCP resources are supported, see the GCP integration documentation.
What to Expect
Once configured, Causely will:
-
Monitor Kubernetes services: Using eBPF instrumentation, Causely automatically discovers and monitors services running in your Kubernetes cluster.
-
Monitor GCP resources: Causely will discover and monitor GCP resources including:
- Compute Engine instances
- Cloud SQL databases
- Cloud Storage
- Bigtable
- And more
-
Unified view: Causely creates a unified topology showing relationships between your Kubernetes services and GCP resources.
-
Show data in the UI: Within a few minutes, you should start seeing entities appearing in the Causely UI at https://portal.causely.app.
Add More Telemetry Sources
To help Causely identify root causes more effectively, connect additional telemetry sources. Visit the Telemetry Sources page to learn about the data sources that Causely supports, including:
- Prometheus
- OpenTelemetry
- Grafana
- Alertmanager
- And many more
Add Workflow Integrations
Push insights into your existing workflows and notification tools. Visit the Workflow Integrations page to set up integrations with:
What's Your Goal?
What's your goal?
Accelerate resolution
Get precise root cause insights during incidents to resolve issues faster.
Proactively prevent incidents
Identify emerging risks before they impact your services and SLOs.
Understand system behavior
Gain deep insights into why your systems behave the way they do.
Scale reliability
Maintain reliability across complex, fast-changing systems at scale.
Optimize performance
Continuously improve system performance with actionable insights.
While this quickstart guide focuses on Kubernetes, Causely also supports:
- Container Orchestration: Nomad, Docker, ECS
- GitOps: Argo CD, Flux
- Virtual Machines: Direct installation on VMs
For detailed installation instructions for these platforms, visit the Installation Overview page.