Skip to main content

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.

1

Get Your Installation Command

  1. Log in to the Causely portal.
  2. Visit the mediators page.
  3. Click the "Add new" button (or "Add ➕" button) on the mediators page.
  4. In the instructions panel, you'll see the Helm installation command with your access token pre-filled.
  5. Copy the complete Helm command. It will look similar to the example below.
Example Command

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}"
Screenshot Placeholder

Screenshots of the mediators page, "Add new" button, and instructions panel will be added here.

4

Run the Installation Command

  1. Open a terminal with kubectl configured to access your Kubernetes cluster.
  2. Paste and run the Helm command you copied from the portal.
  3. Wait for the installation to complete:
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/part-of=causely -n causely --timeout=300s
info

By default, Causely will use eBPF-based instrumentation to automatically instrument your applications running in Kubernetes. This provides zero-effort observability without code changes.

5

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}"
Alternative: Credentials Autodiscovery

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.

6

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.

7

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:

8

Add Workflow Integrations

Push insights into your existing workflows and notification tools. Visit the Workflow Integrations page to set up integrations with:

9

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.

Other Platforms Supported

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.