---
title: "Set up a private probe | Grafana Cloud documentation"
description: "Register a Synthetic Monitoring private probe, install and upgrade the agent using APT, YUM, Docker, or Kubernetes, and verify check executions."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Set up a private probe

To run Synthetic Monitoring checks from your own network, register a [private probe](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/) in Grafana and install the Synthetic Monitoring Agent. Choose from APT, YUM, Docker, or Kubernetes installation methods, then assign checks to the probe.

## Before you begin

> Note
> 
> By default, private probes collect and report anonymous, non-personally identifiable information (PII) about the running probe to a remote statistics server operated by Grafana Labs. Synthetic Monitoring maintainers use that data to understand how the open source community operates private probes.
> 
> To opt out, use the CLI flag `-disable-usage-reports=true`. Refer to [Anonymous usage statistics reporting](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/configure/#anonymous-usage-statistics-reporting) for more information on what’s collected.

- [Install and configure](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/grafana-cloud/) Synthetic Monitoring before adding a private probe.
- You need permission to create probes and edit checks in your stack. If **Add Private Probe** or the check-editing controls aren’t available, ask your Grafana administrator to review your [Synthetic Monitoring permissions](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/user-and-team-management/).
- You need administrative access to the Linux host, Docker environment, or Kubernetes namespace where you install the agent. The host must resolve and reach both Grafana Cloud services and the applications or services you want to monitor.
- Review the [network and resource requirements](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/network-and-resource-requirements/) and find your stack’s [Probe API server URL](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#probe-api-server-url).
- If you plan to run browser checks, review the [browser setup requirements](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/configure/#run-k6-browser-checks-on-a-private-probe) before selecting an agent image or installing the agent.

Each private probe has its own authentication token. Store the token as a secret: don’t commit it to source control or include it in screenshots, logs, or support requests. Register a separate probe for each independent agent deployment. If you run a private probe as a cluster, every agent in the cluster uses the same token. Refer to [Run private probes in a cluster](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/clustering/).

## Add a new probe in your Grafana instance

1. Navigate to **Testing &amp; synthetics &gt; Synthetics &gt; Probes**.
2. Click **Add Private Probe**.
3. Enter a **Probe Name**.
4. Enter a **Latitude** and **Longitude** to see an accurate location on the map panel.
5. Select or enter a **Region**, such as `AMER`, `EMEA`, or `APAC`. This label groups probes in Grafana; it doesn’t select the Grafana Cloud API endpoint.
6. Optionally enter up to three custom labels to identify your probe. Probe labels can’t use reserved system label names. Refer to [System labels](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/system-labels/).
7. Click **Add new probe**.
8. In **Probe setup**, copy `API_TOKEN` to your secret store. This is the probe authentication token. The dialog box shows it only once; if you lose it, you need to reset the token and update the agent configuration.
9. Copy `API_SERVER` and save it for later. You can also use the [Probe API server URL](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#probe-api-server-url) reference to find the endpoint for your stack.

## Choose a deployment model

You can run a private probe in one of two ways:

- **Single agent:** One agent runs every check assigned to the probe. This is the default, and it’s the right choice for most private probes.
- **Cluster:** Several agents share the same probe and split its checks between them. Each check runs on exactly one agent. If an agent stops or fails, the remaining agents take over its checks.

Consider a cluster when one agent can’t keep up with the checks assigned to the probe, or when you want the probe to keep running checks while you restart or lose an individual agent.

Don’t enable clustering if you don’t need it. A cluster adds network traffic, metrics, and operational complexity.

> Note
> 
> Clustering is currently in [public preview](https://grafana.com/docs/release-life-cycle/). Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.

To set up a cluster, first install or deploy the agent, then follow [Run private probes in a cluster](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/clustering/). On Kubernetes, the [Helm chart](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#deploy-the-agent-with-helm) can deploy either model.

With either model, if the probe runs many browser checks, you can run them on a separate fleet of browser instances. Refer to [Run browser checks on a browser pool](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/browser-pool/).

## Install the agent

Choose one installation method. If the agent is already installed, review [upgrade precautions](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#keep-the-agent-up-to-date), then follow the upgrade instructions under your installation method.

The agent’s [release assets](https://github.com/grafana/synthetic-monitoring-agent/releases/latest) include Linux packages and archives for AMD64 and ARM64.

- [Ubuntu/Debian](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#install-the-agent-on-ubuntudebian)
- [Distributions using yum](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#install-the-agent-on-distributions-using-yum)
- [Docker](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#deploy-the-agent-using-docker)
- [Kubernetes](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#deployment-with-kubernetes)
- [Helm](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#deploy-the-agent-with-helm)

Make sure you have the probe authentication token and [Probe API server URL](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#probe-api-server-url). The API value must include `:443` and must not include `https://`.

### Install the agent on Ubuntu/Debian

You can install the agent using the Grafana official APT repository.

1. Install the required packages and add the repository GPG key.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   sudo apt update
   sudo apt install -y wget ca-certificates
   sudo mkdir -p /etc/apt/keyrings/
   sudo wget -O /etc/apt/keyrings/grafana.asc https://apt.grafana.com/gpg-full.key
   sudo chmod 644 /etc/apt/keyrings/grafana.asc
   ```
2. Add the repository for stable releases.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   echo "deb [signed-by=/etc/apt/keyrings/grafana.asc] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
   ```
3. Update the package index and install the agent.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   sudo apt update
   sudo apt install synthetic-monitoring-agent
   ```
4. Configure the probe.
   
   Restrict access to the configuration file before adding your probe token:
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   sudo chmod 600 /etc/synthetic-monitoring/synthetic-monitoring-agent.conf
   ```
   
   Open `/etc/synthetic-monitoring/synthetic-monitoring-agent.conf` with an editor using `sudo`. Set these values, retaining the other settings:
   
   ini ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```ini
   SM_AGENT_API_TOKEN='YOUR_PROBE_AUTHENTICATION_TOKEN'
   API_SERVER='YOUR_PROBE_API_SERVER_URL'
   ```
   
   Replace the placeholders with the probe authentication token and the [Probe API server URL](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#probe-api-server-url) for your stack. Save the file.
5. Enable the service at boot and start it with your configuration.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   sudo systemctl enable synthetic-monitoring-agent.service
   sudo systemctl restart synthetic-monitoring-agent.service
   sudo systemctl status synthetic-monitoring-agent.service --no-pager
   ```
   
   The service should report `active (running)`. If it exits or repeatedly restarts, [inspect the agent logs](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/troubleshoot/).
6. Continue to [Verify the agent connection](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-the-agent-connection).

#### Upgrade the agent on Ubuntu/Debian

Review [Keep the agent up to date](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#keep-the-agent-up-to-date), then update the installed package and restart the service:

Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy

```bash
sudo apt update
sudo apt install --only-upgrade synthetic-monitoring-agent
sudo systemctl restart synthetic-monitoring-agent.service
sudo systemctl status synthetic-monitoring-agent.service --no-pager
synthetic-monitoring-agent --version
```

Confirm that the package manager installed the version you intended and the service reports `active (running)`. Review any package-manager messages about configuration files, then [verify the upgrade](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-an-upgrade).

### Install the agent on distributions using yum

You can install the agent using the official YUM repository.

1. Create the Grafana repository configuration. If the repository is already configured, retain the existing definition and skip this step.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   sudo tee /etc/yum.repos.d/grafana.repo > /dev/null <<'EOF'
   [grafana]
   name=grafana
   baseurl=https://rpm.grafana.com
   repo_gpgcheck=1
   enabled=1
   gpgcheck=1
   gpgkey=https://rpm.grafana.com/gpg.key
   sslverify=1
   sslcacert=/etc/pki/tls/certs/ca-bundle.crt
   EOF
   ```
2. Install the agent.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   sudo yum install synthetic-monitoring-agent
   ```
3. Configure the agent.
   
   Restrict access to the configuration file before adding your probe token:
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   sudo chmod 600 /etc/synthetic-monitoring/synthetic-monitoring-agent.conf
   ```
   
   Using an editor with `sudo`, edit `/etc/synthetic-monitoring/synthetic-monitoring-agent.conf` and set these values, retaining the other settings:
   
   ini ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```ini
   SM_AGENT_API_TOKEN='YOUR_PROBE_AUTHENTICATION_TOKEN'
   API_SERVER='YOUR_PROBE_API_SERVER_URL'
   ```
   
   Replace the placeholders with the probe authentication token and the [Probe API server URL](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#probe-api-server-url) for your stack. Save the file.
4. Enable the service and start it.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   sudo systemctl enable synthetic-monitoring-agent.service
   sudo systemctl restart synthetic-monitoring-agent.service
   sudo systemctl status synthetic-monitoring-agent.service --no-pager
   ```
   
   The service should report `active (running)`. If it exits or repeatedly restarts, [inspect the agent logs](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/troubleshoot/).
5. Continue to [Verify the agent connection](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-the-agent-connection).

#### Upgrade the agent on distributions using yum

Review [Keep the agent up to date](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#keep-the-agent-up-to-date), then update the installed package and restart the service:

Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy

```bash
sudo yum update synthetic-monitoring-agent
sudo systemctl restart synthetic-monitoring-agent.service
sudo systemctl status synthetic-monitoring-agent.service --no-pager
synthetic-monitoring-agent --version
```

Confirm that the package manager installed the version you intended and the service reports `active (running)`. Review any package-manager messages about configuration files, then [verify the upgrade](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-an-upgrade).

### Deploy the agent using Docker

You need Docker and permission to run containers. The following example uses the standard [agent image](https://hub.docker.com/r/grafana/synthetic-monitoring-agent). For browser checks, use a `-browser` image and follow the [container browser requirements](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/configure/#container-deployments).

1. Pull the latest image. For browser checks, use `latest-browser` instead of `latest` in both the pull and run commands.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   docker pull grafana/synthetic-monitoring-agent:latest
   ```
2. Export required configuration as environment variables.
   
   Update the placeholders with your probe authentication token and the [Probe API server URL](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#probe-api-server-url) for your stack region.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   export SM_AGENT_API_TOKEN="@@@SM_PROBE_TOKEN@@@"
   export API_SERVER="@@@SM_PROBE_API_SERVER_URL@@@"
   ```
   
   Passing the token through the environment avoids putting it in the agent’s command-line arguments. Docker administrators can still inspect container environment variables; use your deployment’s secret-management controls to protect it.
3. Start a named container. The example binds the published diagnostics port to the Docker host’s loopback address, not to its public interfaces.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   docker run -d --name sm-agent --restart unless-stopped \
     -e SM_AGENT_API_TOKEN \
     -p 127.0.0.1:4050:4050 \
     grafana/synthetic-monitoring-agent:latest \
     --api-server-address="$API_SERVER" \
     --listen-address=0.0.0.0:4050
   ```
   
   The agent listens on all interfaces inside the container so port publishing can reach it. Other containers with access to that container’s network can also reach the diagnostics endpoint. Use a trusted container network.
4. Check that the container stays running, then continue to [Verify the agent connection](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-the-agent-connection).
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   docker ps --filter name=sm-agent
   docker logs --tail 50 sm-agent
   ```

#### Upgrade the agent using Docker

1. Review [Keep the agent up to date](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#keep-the-agent-up-to-date).
2. Export `SM_AGENT_API_TOKEN` and `API_SERVER` with the same values used by the running container. Use the environment-variable step in [Deploy the agent using Docker](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#deploy-the-agent-using-docker); don’t register a new probe for the upgrade.
3. Pull the latest image:
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   export SM_AGENT_IMAGE="grafana/synthetic-monitoring-agent:latest"
   docker pull "$SM_AGENT_IMAGE"
   ```
   
   For browser checks, use `latest-browser` instead of `latest`.
4. Stop and replace the container. The following commands replace the `sm-agent` container created by this page’s setup example. If you added custom arguments, network settings, environment variables, or volumes, preserve those settings in your replacement command or use your deployment tool’s update procedure instead.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   docker stop sm-agent
   docker rm sm-agent
   docker run -d --name sm-agent --restart unless-stopped \
     -e SM_AGENT_API_TOKEN \
     -p 127.0.0.1:4050:4050 \
     "$SM_AGENT_IMAGE" \
     --api-server-address="$API_SERVER" \
     --listen-address=0.0.0.0:4050
   docker logs --tail 50 sm-agent
   ```
5. [Verify the upgrade](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-an-upgrade).

Pulling a new image or restarting the old container doesn’t change the image of an existing container. Don’t start a second independent agent with the same probe token as part of this replacement.

To run several agents for the same probe, refer to [Configure clustering with Docker](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/clustering/#configure-clustering-with-docker).

### Deployment with Kubernetes

You need `kubectl` configured for the intended cluster and permission to create a namespace, Secret, and Deployment. Confirm your current context before applying resources:

Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy

```bash
kubectl config current-context
```

The following procedure uses the [example manifests from the agent repository](https://github.com/grafana/synthetic-monitoring-agent/tree/main/examples/kubernetes). Review them before applying them, especially the image, security context, and resource requests. This is a deployment example, not a complete production configuration.

To deploy the agent with the Helm chart instead, refer to [Deploy the agent with Helm](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#deploy-the-agent-with-helm).

1. Download the manifests into a working directory that isn’t tracked in source control.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   wget https://raw.githubusercontent.com/grafana/synthetic-monitoring-agent/main/examples/kubernetes/namespace.yaml
   wget https://raw.githubusercontent.com/grafana/synthetic-monitoring-agent/main/examples/kubernetes/secret.yaml
   wget https://raw.githubusercontent.com/grafana/synthetic-monitoring-agent/main/examples/kubernetes/deployment.yaml
   ```
2. Create the `synthetic-monitoring` namespace.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   kubectl apply -f namespace.yaml
   ```
3. Edit `secret.yaml`. Replace `YOUR_TOKEN` in `stringData.api-token` with your probe authentication token. Replace `PROBE_API_SERVER_URL` in `stringData.api-server` with your stack’s [Probe API server URL](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#probe-api-server-url).
   
   Apply the Secret and confirm that it exists without displaying its values:
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   kubectl apply -f secret.yaml
   
   kubectl get secret sm-agent-1 -n synthetic-monitoring
   ```
4. Review `deployment.yaml`. The example uses the latest standard agent image:
   
   YAML ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```yaml
   image: grafana/synthetic-monitoring-agent:latest
   ```
   
   For browser checks, use the browser image instead:
   
   YAML ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```yaml
   image: grafana/synthetic-monitoring-agent:latest-browser
   ```
   
   For browser checks, also uncomment the `/home/sm` volume mount in the manifest so Chromium has writable temporary storage.
   
   Apply the Deployment and wait for its rollout:
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   kubectl apply -f deployment.yaml
   kubectl rollout status deployment/sm-agent-1 -n synthetic-monitoring
   kubectl logs -n synthetic-monitoring deployment/sm-agent-1 --tail=50
   ```
   
   A completed rollout shows that Kubernetes started the container. The example doesn’t enable a readiness probe, so this alone doesn’t establish an API connection.
5. Continue to [Verify the agent connection](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-the-agent-connection). Protect the local Secret manifest according to your organization’s secret-handling policy.

#### Upgrade the agent on Kubernetes

1. Review [Keep the agent up to date](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#keep-the-agent-up-to-date).
2. In the manifest that manages the Deployment, use `latest` or `latest-browser` and set the container’s `imagePullPolicy` to `Always` so new Pods check for an updated image. Retain its Secret references, resource settings, custom arguments, and volumes, including browser-specific settings.
3. Confirm your Kubernetes context before applying changes:
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   kubectl config current-context
   ```
   
   Check that the context is your intended cluster. Use your own Deployment and namespace names if they differ from the example.
4. Apply the manifest and restart the Deployment to replace the running Pods, even if the image tag hasn’t changed. For the example on this page:
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   kubectl apply -f deployment.yaml
   kubectl rollout restart deployment/sm-agent-1 -n synthetic-monitoring
   kubectl rollout status deployment/sm-agent-1 -n synthetic-monitoring
   kubectl logs -n synthetic-monitoring deployment/sm-agent-1 --tail=50
   ```
5. Check that the Deployment is configured with the intended image:
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   kubectl get deployment sm-agent-1 -n synthetic-monitoring -o jsonpath='{.spec.template.spec.containers[0].image}'
   ```
6. [Verify the upgrade](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-an-upgrade).

### Deploy the agent with Helm

The [synthetic-monitoring-agent Helm chart](https://github.com/grafana/synthetic-monitoring-agent/tree/main/charts/synthetic-monitoring-agent) deploys the agent and, optionally, a [cluster](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/clustering/#configure-clustering-with-helm) and a [browser pool](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/browser-pool/#configure-the-browser-pool-with-helm).

Before you install the chart, review the following:

- The chart version is independent of the agent version. To run a different agent release, set `image.tag`.
- The agent needs the `NET_RAW` capability for ping and traceroute checks. The Pod Security `baseline` profile doesn’t allow it, so deploy the chart in a namespace that allows the `privileged` profile.
- Version 2.0.0 of the chart replaces the previous `synthetic-monitoring-agent` 1.x charts and renames most values. To migrate, uninstall the 1.x release and install the new chart.

<!--THE END-->

1. Create the `synthetic-monitoring` namespace and a secret with the probe authentication token.
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   kubectl create namespace synthetic-monitoring
   kubectl create secret generic sm-agent -n synthetic-monitoring --from-literal=api-token="@@@SM_PROBE_TOKEN@@@"
   ```
2. Create a `values.yaml` file. Update the placeholder with the [Probe API server URL](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#probe-api-server-url) for your stack region.
   
   YAML ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```yaml
   probe:
     apiServerAddress: "@@@SM_PROBE_API_SERVER_URL@@@"
     existingSecret: sm-agent
   ```
   
   Keep this file. You pass it again when you upgrade the release or change its configuration.
3. Install the chart:
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   helm install sm-agent oci://ghcr.io/grafana/helm-charts/synthetic-monitoring-agent \
     -n synthetic-monitoring -f values.yaml
   ```
   
   The chart is also available in the `grafana` Helm repository, `https://grafana.github.io/helm-charts`.
4. Continue to [Verify the agent connection](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-the-agent-connection).

For every available value, and for the migration from the 1.x charts, refer to the chart [README](https://github.com/grafana/synthetic-monitoring-agent/tree/main/charts/synthetic-monitoring-agent).

#### Upgrade the agent with Helm

1. Review [Keep the agent up to date](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#keep-the-agent-up-to-date).
2. To run a different agent version, set `image.tag` in your `values.yaml` file. Otherwise, the chart uses the agent version it was released with.
3. Upgrade the release with the `values.yaml` file you installed with:
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   helm upgrade sm-agent oci://ghcr.io/grafana/helm-charts/synthetic-monitoring-agent \
     -n synthetic-monitoring -f values.yaml
   ```
   
   When you pass a values file, Helm resets every value that isn’t in it to the chart default, so always pass your complete file.
   
   A single agent stops before its replacement starts, so the probe is offline while the agent restarts. In a [cluster](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/clustering/#configure-clustering-with-helm), the chart starts each new agent before it stops an old one.
   
   Don’t use this upgrade to switch a single agent to a cluster. Instead, follow [Configure clustering with Helm](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/clustering/#configure-clustering-with-helm).
4. [Verify the upgrade](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-an-upgrade).

## Verify the agent connection

1. Open **Testing &amp; synthetics &gt; Synthetics &gt; Probes** in the stack where you registered the probe. Find your private probe and check that it is online and shows an agent version. Registration alone doesn’t establish that the agent has connected.
2. For a Linux package installation or the Docker example on this page, run the following command on the agent host:
   
   Bash ![Copy code to clipboard](https://grafana.com/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   curl --fail --show-error http://127.0.0.1:4050/ready
   ```
   
   A successful response is HTTP `200` with the body `ready`. HTTP `503` means the agent hasn’t established its initial API connection. Refer to [Troubleshoot private probes](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/troubleshoot/).
   
   The endpoint stays ready after the first successful connection for that process. It isn’t a continuous connectivity check and doesn’t confirm that results reach Prometheus or Loki. For Kubernetes, use the Grafana probe view and agent logs unless you’ve configured access to the diagnostics endpoint.
3. For a new probe, [assign checks](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#assign-checks-to-your-private-probe). If the probe already has assigned checks, [verify their executions](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-check-executions).

## Assign checks to your private probe

New probes aren’t automatically added to existing checks, even if you selected all available probes when creating a check.

1. Open **Testing &amp; synthetics &gt; Synthetics &gt; Checks** and edit a check that should run from your environment, or [create a check](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/create-checks/checks/).
2. Open **Execution**. Under **Probe locations**, select your probe in **Private probes**. Keep any other probes you still want to use, then click **Save**.
3. [Verify check executions](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-check-executions) from your probe.

### Verify check executions

Use these steps after assigning a check or upgrading the agent. An upgrade that retains the existing probe token doesn’t require reassigning checks.

1. Open an assigned check’s **View dashboard** link. Select a time range after the assignment or upgrade and allow at least one configured check interval and execution timeout for a result to arrive. Results can take additional time to appear in the dashboard.
2. In the time point explorer, select **Reachability**, then select a completed time point and your private probe’s tab. The newest time point can still be pending; select an earlier completed time point within your selected time range if necessary. Confirm that the execution has a result from that probe. For detailed controls, refer to [Visualize check execution](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/analyze-results/visualize-check-execution/).

A successful execution confirms that the configured check ran and reported success from this probe. A failed execution confirms reporting, but requires investigation of the check or monitored application. For failures, refer to [Troubleshoot a failing check](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/analyze-results/troubleshoot-checks/). If no completed execution appears, refer to [Troubleshoot private probes](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/troubleshoot/).

## Keep the agent up to date

Review [agent releases](https://github.com/grafana/synthetic-monitoring-agent/releases) regularly for fixes and new functionality. Check the release notes for changes that affect your checks, configuration, and deployment. Don’t assume that a running older agent supports newly introduced features.

Before upgrading:

1. Record the version shown for the probe in **Testing &amp; synthetics &gt; Synthetics &gt; Probes**, or run `synthetic-monitoring-agent --version` on a package installation.
2. Record the installed package version or container image tag so you can identify the previous deployment. Keep a protected copy of your configuration and deployment manifests; don’t copy tokens into an issue or pull request.
3. Plan for a gap while the agent restarts. Package installation or upgrade tools can restart the service during the package transaction, before your explicit restart command. Upgrade one probe first and verify it before upgrading the remaining probes.
4. Retain the existing probe token and API endpoint. An upgrade doesn’t require registering a new probe.

Keeping the agent up to date is especially important for the [label migration](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/migrate-labels/): the un-prefixed label behavior is delivered by the agent. Upgrade all your private probes to the latest agent version *before* enabling dual-write.

> Warning
> 
> If some of your probes run an older agent version when you migrate, those probes keep emitting custom labels with the `label_` prefix while upgraded probes emit the new format. This leaves the same check with inconsistent labels across probes.
> 
> This includes probes that are offline or that you no longer use: upgrade them or delete them before you migrate.

If you run agents as a cluster, keep every agent in the cluster on the same version. Upgrade the agents one at a time, and wait until each upgraded agent is back in the cluster before you upgrade the next one. On Kubernetes, a Deployment rolling update replaces the agents one at a time, and the [Helm chart](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#deploy-the-agent-with-helm) starts each new agent before it stops an old one. On Docker or Linux packages, upgrade one host at a time. Checks move between agents as each one restarts.

### Verify an upgrade

1. [Verify the agent connection](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-the-agent-connection) and check that the version shown in **Testing &amp; synthetics &gt; Synthetics &gt; Probes** matches the version you installed.
2. [Verify executions](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/set-up/#verify-check-executions) from checks already assigned to the probe after the upgrade. Include each check type the probe runs, especially browser checks if you changed the image or runtime.

If the agent restarts repeatedly or executions stop arriving, use [Troubleshoot private probes](https://grafana.com/docs/grafana-cloud/observe-and-act/testing/synthetic-monitoring/set-up/set-up-private-probes/troubleshoot/) before upgrading other probes. If you use a systemd `ExecStart` override, compare it with the updated package unit so it doesn’t mask new startup settings. Assess configuration compatibility before reverting to a previous version.

## Probe API server URL

Use the endpoint for the stack where you registered the probe, not the probe’s physical location or its **Region** label.

1. In that stack, open **Testing &amp; synthetics &gt; Synthetics &gt; Configuration &gt; General**. Under **Probe API Server URL**, copy the displayed endpoint if it is available.
2. If the endpoint isn’t available, find **Your backend address is** and match its hostname to the **Backend address** column in the following table. If the displayed address includes `https://`, compare the hostname without that prefix. Some region and provider combinations have multiple rows, so match the backend address rather than selecting by region name alone. Copy the **API server URL** from the same row.
3. Use the API server value, including `:443` and without `https://`, for `API_SERVER` or `--api-server-address`. Don’t copy the backend address or secrets proxy address into this setting.

Expand table

| Region             | Provider | API server URL                                             | Backend address                                       | Secrets proxy                                                                        |
|--------------------|----------|------------------------------------------------------------|-------------------------------------------------------|--------------------------------------------------------------------------------------|
| Amsterdam          | Azure    | `synthetic-monitoring-grpc-eu-west-3.grafana.net:443`      | `synthetic-monitoring-api-eu-west-3.grafana.net`      | `gsm-proxy-prod-eu-west-3.grafana.net`                                               |
| Australia          | GCP      | `synthetic-monitoring-grpc-au-southeast.grafana.net:443`   | `synthetic-monitoring-api-au-southeast.grafana.net`   | `gsm-proxy-prod-au-southeast-0.grafana.net`                                          |
| Australia          | AWS      | `synthetic-monitoring-grpc-au-southeast-1.grafana.net:443` | `synthetic-monitoring-api-au-southeast-1.grafana.net` | `gsm-proxy-prod-au-southeast-1.grafana.net`                                          |
| Brazil             | GCP      | `synthetic-monitoring-grpc-sa-east-0.grafana.net:443`      | `synthetic-monitoring-api-sa-east-0.grafana.net`      | `gsm-proxy-prod-sa-east-0.grafana.net`                                               |
| Brazil             | AWS      | `synthetic-monitoring-grpc-sa-east-1.grafana.net:443`      | `synthetic-monitoring-api-sa-east-1.grafana.net`      | `gsm-proxy-prod-sa-east-1.grafana.net`                                               |
| Canada             | AWS      | `synthetic-monitoring-grpc-ca-east-0.grafana.net:443`      | `synthetic-monitoring-api-ca-east-0.grafana.net`      | `gsm-proxy-prod-ca-east-0.grafana.net`                                               |
| Europe             | AWS      | `synthetic-monitoring-grpc-eu-west-2.grafana.net:443`      | `synthetic-monitoring-api-eu-west-2.grafana.net`      | `gsm-proxy-prod-eu-west-2.grafana.net`, `gsm-proxy-prod-eu-west-4.grafana.net`       |
| Europe             | AWS      | `synthetic-monitoring-grpc-eu-west-6.grafana.net:443`      | `synthetic-monitoring-api-eu-west-6.grafana.net`      | `gsm-proxy-prod-eu-west-6.grafana.net`                                               |
| Europe             | GCP      | `synthetic-monitoring-grpc-eu-west.grafana.net:443`        | `synthetic-monitoring-api-eu-west.grafana.net`        | `gsm-proxy-prod-eu-west-0.grafana.net`                                               |
| India              | GCP      | `synthetic-monitoring-grpc-ap-south-0.grafana.net:443`     | `synthetic-monitoring-api-ap-south-0.grafana.net`     | `gsm-proxy-prod-ap-south-0.grafana.net`                                              |
| India              | AWS      | `synthetic-monitoring-grpc-ap-south-1.grafana.net:443`     | `synthetic-monitoring-api-ap-south-1.grafana.net`     | `gsm-proxy-prod-ap-south-1.grafana.net`                                              |
| Japan              | AWS      | `synthetic-monitoring-grpc-ap-northeast-0.grafana.net:443` | `synthetic-monitoring-api-ap-northeast-0.grafana.net` | `gsm-proxy-prod-ap-northeast-0.grafana.net`                                          |
| Saudi Arabia       | GCP      | `synthetic-monitoring-grpc-me-central-0.grafana.net:443`   | `synthetic-monitoring-api-me-central-0.grafana.net`   | `gsm-proxy-prod-me-central-0.grafana.net`                                            |
| Singapore          | GCP      | `synthetic-monitoring-grpc-ap-southeast-0.grafana.net:443` | `synthetic-monitoring-api-ap-southeast-0.grafana.net` | `gsm-proxy-prod-ap-southeast-0.grafana.net`                                          |
| Singapore          | AWS      | `synthetic-monitoring-grpc-ap-southeast-1.grafana.net:443` | `synthetic-monitoring-api-ap-southeast-1.grafana.net` | `gsm-proxy-prod-ap-southeast-1.grafana.net`                                          |
| Indonesia          | AWS      | `synthetic-monitoring-grpc-ap-southeast-2.grafana.net:443` | `synthetic-monitoring-api-ap-southeast-2.grafana.net` | `gsm-proxy-prod-ap-southeast-2.grafana.net`                                          |
| Sweden             | AWS      | `synthetic-monitoring-grpc-eu-north-0.grafana.net:443`     | `synthetic-monitoring-api-eu-north-0.grafana.net`     | `gsm-proxy-prod-eu-north-0.grafana.net`                                              |
| Switzerland        | AWS      | `synthetic-monitoring-grpc-eu-central-0.grafana.net:443`   | `synthetic-monitoring-api-eu-central-0.grafana.net`   | `gsm-proxy-prod-eu-central-0.grafana.net`                                            |
| UAE                | AWS      | `synthetic-monitoring-grpc-me-central-1.grafana.net:443`   | `synthetic-monitoring-api-me-central-1.grafana.net`   | `gsm-proxy-prod-me-central-1.grafana.net`                                            |
| UK                 | GCP      | `synthetic-monitoring-grpc-gb-south.grafana.net:443`       | `synthetic-monitoring-api-gb-south.grafana.net`       | `gsm-proxy-prod-gb-south-0.grafana.net`                                              |
| UK                 | AWS      | `synthetic-monitoring-grpc-gb-south-1.grafana.net:443`     | `synthetic-monitoring-api-gb-south-1.grafana.net`     | `gsm-proxy-prod-gb-south-1.grafana.net`                                              |
| United States East | AWS      | `synthetic-monitoring-grpc-us-east-0.grafana.net:443`      | `synthetic-monitoring-api-us-east-0.grafana.net`      | `gsm-proxy-prod-us-east-0.grafana.net`, `gsm-proxy-prod-us-east-2.grafana.net`       |
| United States East | AWS      | `synthetic-monitoring-grpc-us-east-3.grafana.net:443`      | `synthetic-monitoring-api-us-east-3.grafana.net`      | `gsm-proxy-prod-us-east-3.grafana.net`                                               |
| United States East | GCP      | `synthetic-monitoring-grpc-us-east-1.grafana.net:443`      | `synthetic-monitoring-api-us-east-1.grafana.net`      | `gsm-proxy-prod-us-east-1.grafana.net`                                               |
| United States West | AWS      | `synthetic-monitoring-grpc-us-west-0.grafana.net:443`      | `synthetic-monitoring-api-us-west-0.grafana.net`      | `gsm-proxy-prod-us-west-0.grafana.net`                                               |
| United States      | Azure    | `synthetic-monitoring-grpc-us-central-7.grafana.net:443`   | `synthetic-monitoring-api-us-central-7.grafana.net`   | `gsm-proxy-prod-us-central-7.grafana.net`                                            |
| United States      | GCP      | `synthetic-monitoring-grpc.grafana.net:443`                | `synthetic-monitoring-api.grafana.net`                | `gsm-proxy-prod-us-central-0.grafana.net`, `gsm-proxy-prod-us-central-4.grafana.net` |
