--- title: "Deploy Telemetry Collector in Docker" slug: "deploying-telemetry-collector-in-docker" tags: ["Telemetry Collector", "Docker"] updated: 2026-11-20T20:20:24Z published: 2026-11-20T20:20:24Z canonical: "docs.crossworkassurance.cisco.com/deploying-telemetry-collector-in-docker" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Deploy Telemetry Collector in Docker Which procedure should I follow? - **Cloud deployments:** Follow [this section](/latest/docs/deploying-telemetry-collector-in-docker#deploy-in-cloud) of the article for instructions on deploying your Telemetry Collector using Docker. - **On-Prem Controlled Availability deployments:** Follow [this section](/latest/docs/deploying-telemetry-collector-in-docker#deploy-onprem-controlled-availability-only) of the article. Your deployment includes a built-in registry that simplifies container image downloads. For more information, see [Integrated Registry for Sensor Collector](/latest/docs/oci-registry-for-sensor-collector). **IMPORTANT Note:** All upgraded or Controlled Availability release deployments will need to enable this feature flag **OCI PROXY** from [Feature Flags](/latest/docs/crosswork-assurance-feature-flags). This is accessible to users with the tenant-admin role or to Deployment Administrators via the Platform Administration UI. **By default, all new installations will turn this feature on.** ## Deploy in Cloud This article explains how to deploy your Telemetry Collector using Docker. ### Setting Up Your Telemetry Collector Working Directory **To prepare the working directory for your Telemetry Collector:** 1. Create a directory on your system where the Telemetry Collector will operate. 2. Navigate to the newly-created directory. 3. In this directory, create a **docker-compose.yml file** that resembles the following: ``` services: telemetry-collector: container_name: "telemetry-collector" image: "gcr.io/sky-agents/agent-telemetry-amd64:r25.07" environment: AGENT_MANAGEMENT_PROXY: "{{ sensorcollector-ip }}" AGENT_MANAGEMENT_PROXY_PORT: 30777 logging: driver: "json-file" options: max-size: "10m" max-file: "3" ports: - "57000:57000" volumes: - type: bind source: ./secrets/secrets.yaml target: /run/secrets/secrets.yaml # Optional volume mount if using SSL with a sensor collector that has a self-signed certificate # The CA that signed the server certificate of a sensor collector that needs to be trusted # - type: bind # source: ./secrets/ca.pem # target: /usr/local/share/ca-certificates/ca.pem ``` Notes: - `AGENTMANAGEMENTPROXY` corresponds to your local Sensor Collector. The `{{ sensorcollector-ip }}` placeholder should be replaced with the IP of your deployed Sensor Collector. - `AGENTMANAGEMENTPROXY_PORT` corresponds to the Agent Proxy port you chose when creating your Sensor Collector configuration. `55777` is the default value. However, if you choose something else, then this must match. - `AGENT_MANAGEMENT_PROXY_USE_SSL` must correspond to the TLS setting for your Sensor Collector. This is enabled by default, but when testing, it can be disabled - You will notice a volume mount which references a file on the host named **`./secrets/secrets.yaml`**. That is covered in this article: [Create Secrets for Telemetry Collector](/latest/docs/create-secrets-for-telemetry-collector). ### Starting the Telemetry Collector You are now ready to start your Telemetry Collector. Run the following command to do so: ``` docker compose up -d ``` If all went as expected, you should see Telemetry Collector logs indicating that your Telemetry Collector has started and connected both its Management and Data links to your Sensor Collector. #### Logs to Monitor These logs show our blue box app starting (`telemetry` is our application): ``` telemetry Blue Box application Telemetry Collector monitor Received signal from ciscomdt, continuing start sequence! monitor Starting Telemetry telemetry Blue Box application starting on agent c390d231-1376-4aae-8a7b-59c0a77ed85e. telemetry Waiting for system monitor Startup sequence completed ``` These show the Telemetry Collector successfully establishing its management connection with Sensor Collector: ``` management Connecting to management server: host.docker.internal:55777; Attempt: 1 management Connection to management established: Compression is Enabled telemetry ix Subscribe topic service/telemetry/config client telemetry agentHealth Starting CPU monitoring thread management Authenticating to management server: host.docker.internal:55777; Attempt: 1 management Sending identification management Waiting for configuration management Authentication successful! ``` These show the Telemetry Collector sending a configuration request to Crosswork Assurance over the Sensor Collector Management link and getting back its configuration: ``` hs to si*"] tag = "objectType" template = 'cisco_mdt_interface' [[processors.template]] order = 3 n"interface_statistics/basic_interface_stats/bytes_received" dest = "interface_statistics/full_interface_stats/bytes_received" # Restricts the number of tags that can pass through this filter and chooses which tags to preserve when over the limit. [[processors.tag_limit]] order = 6 ## Maximum number of tags to preserve limit = 4 ## List of tags to preferentially preserve keep = ["sessionId", "sessionName", "objectType","direction"] telemetry-agent | 2024-04-12T15:44:17Z I! Config watcher started telemetry-agent | 2024-04-12T15:44:17Z I! Config watcher started telemetry-agent | 2024-04-12T15:44:17Z I! Loading config: /etc/Telemetry/Telemetry.conf ``` These show the Telemetry Collector successfully establishing its data connection with Sensor Collector: ``` data Connecting to data broker: host.docker.internal:55888; Attempt: 0 I! Loading config: /etc/Telemetry/Telemetry.d/cisco_mdt_dialout.conf I! Starting Telemetry 1.29.4 brought to you by InfluxData the makers of InfluxDB I! Available plugins: 241 inputs, 9 aggregators, 30 processors, 24 parsers, 60 outputs, 6 secret-stores I! Loaded inputs: cisco_telemetry_mdt I! Loaded aggregators: I! Loaded processors: rename starlark tag_limit template (8x) I! Loaded secretstores: I! Loaded outputs: health websocket I! Tags enabled: host=telemetry-agent I! [agent] Config: Interval:10s, Quiet:false, Hostname:"telemetry-agent", Flush Interval:10s I! [outputs.health] Listening on http://[::]:57001 telemetry Received connection request from Telemetry telemetry Listener connected to Telemetry instance data Connection to data broker established: Compression is Enabled data Waiting batches: 0 data Authenticating data path: Attempt: 1 data Broker message chunck size changed to 3000. data Sent authentication request, waiting for confirmation. data Authentication successful! ``` These show the embedded Telemetry instance successfully starting: ``` I! Loading config: /etc/Telemetry/Telemetry.conf I! Loading config: /etc/Telemetry/Telemetry.d/cisco_mdt_dialout.conf I! Starting Telemetry 1.29.4 brought to you by InfluxData the makers of InfluxDB I! Available plugins: 241 inputs, 9 aggregators, 30 processors, 24 parsers, 60 outputs, 6 secret-stores I! Loaded inputs: cisco_telemetry_mdt I! Loaded aggregators: I! Loaded processors: rename starlark tag_limit template (8x) I! Loaded secretstores: I! Loaded outputs: health websocket I! Tags enabled: host=telemetry-agent I! [agent] Config: Interval:10s, Quiet:false, Hostname:"telemetry-agent", Flush Interval:10s I! [outputs.health] Listening on http://[::]:57001 telemetry Received connection request from Telemetry telemetry Listener connected to Telemetry instance ``` Your Telemetry Collector is now running and connected to Crosswork Assurance via the Sensor Collector instance that you have deployed. ## Deploy On-Prem (Controlled Availability Only) This section covers Docker deployments that pull the Telemetry Collector image through the **built-in registry** included in your Crosswork Assurance deployment. The built-in registry eliminates the need for direct access to external container registries (e.g., `gcr.io`) -- air-gapped and connected deployments follow the same procedure. For more details see [On-Prem Controlled Availability Release Notes](/latest/docs/on-prem-controlled-availability). ### Prerequisites - Docker Engine (20.10+) installed on the target host. - Network connectivity from the target host to the Crosswork Assurance deployment (port 443). - A **Gateway Sensor Collector** already deployed and reachable from the target host -- the Telemetry Collector connects to it for management and data transport. - A configured Telemetry Collector (agent) in the Crosswork Assurance UI -- you will need the **Agent ID** and **Authentication Token** from the UI. - A `secrets.yaml` file for the Telemetry Collector (see [Create Secrets for Telemetry Collector](/v1/docs/create-secrets-for-telemetry-collector)). ### Step 1: Obtain Registry Credentials The Telemetry Collector image is pulled from the built-in registry using the same credential mechanism as the Sensor Collector. You need a valid download token. #### Option A: Use the Sensor Collector's Download Token If you have already deployed a Sensor Collector via the built-in registry (Docker package), the `.oci_token` file from that package can be reused. The token grants read-only scope, which is sufficient to pull any image through the built-in registry. #### Option B: Download a Fresh Sensor Collector Package If you don't have an existing `.oci_token`: 1. Navigate to **Sensors > Collectors > Sensor Collectors** in the Crosswork Assurance UI. 2. Select the Sensor Collector zone that the Telemetry Collector will connect to. 3. Click the ellipsis (three dots) > **Download (Docker)**. 4. Extract the package and copy the `.oci_token` file. #### Authenticate Docker to the Built-in Registry ``` cat .oci_token | docker login -u x-token --password-stdin ``` Where `<registry-host>` is your Crosswork Assurance deployment hostname. ### Step 2: Trust the Crosswork Assurance CA Certificate (If Required) If your Crosswork Assurance deployment uses a self-signed TLS certificate, the Docker daemon must trust the Crosswork Assurance CA before it can pull images. ``` # Replace with your Crosswork Assurance hostname sudo mkdir -p /etc/docker/certs.d/ sudo cp pca_ca.crt /etc/docker/certs.d//ca.crt ``` > The `pca_ca.crt` file is included in Sensor Collector Docker packages. If your Crosswork Assurance deployment uses a publicly-trusted certificate, this step can be skipped. ### Step 3: Set Up the Working Directory Create a directory for your Telemetry Collector deployment: ``` mkdir telemetry-collector cd telemetry-collector ``` #### Create secrets.yaml Create the `secrets/secrets.yaml` file as described in [Create Secrets for Telemetry Collector](/v1/docs/create-secrets-for-telemetry-collector): ``` mkdir -p secrets # Copy or create your secrets.yaml into secrets/ cp /path/to/secrets.yaml secrets/ ``` #### Create docker-compose.yml Create a `docker-compose.yml` file. The key difference from the cloud procedure is the **image reference**, which now points to the built-in registry instead of `gcr.io` directly: ``` services: telemetry-collector: container_name: "telemetry-collector" image: "/proxy/pca-dev/gcr.io/sky-agents/agent-telemetry-amd64:ca" environment: AGENT_MANAGEMENT_PROXY: "" AGENT_MANAGEMENT_PROXY_PORT: 30777 logging: driver: "json-file" options: max-size: "10m" max-file: "3" ports: - "57000:57000" volumes: - type: bind source: ./secrets/secrets.yaml target: /run/secrets/secrets.yaml ``` Replace the following placeholders: | Placeholder | Value | | --- | --- | | `<registry-host>` | Your Crosswork Assurance deployment hostname | | `<sensorcollector-ip>` | IP address of your deployed Gateway Sensor Collector | | `AGENT_MANAGEMENT_PROXY_PORT` | Agent Proxy port from your Sensor Collector configuration (default: 55777, or the NodePort if running on K8s, e.g., 30777) | **Running multiple collectors:** Use a unique `container_name` for each instance (e.g., `telemetry-collector-1`, `telemetry-collector-2`) and a unique host port mapping (e.g., `57001:57000`, `57002:57000`). #### Environment Variables | Variable | Description | Required | | --- | --- | --- | | `AGENT_MANAGEMENT_PROXY` | IP address of the Sensor Collector | Yes | | `AGENT_MANAGEMENT_PROXY_PORT` | Agent Proxy port on the Sensor Collector | Yes | | `AGENT_MANAGEMENT_PROXY_USE_SSL` | Enable/disable TLS to Sensor Collector (default: enabled) | No | ### Step 4: Start the Telemetry Collector ``` docker compose up -d ``` Docker will pull the Telemetry Collector image from the built-in registry (using the credentials from Step 1), then start the container. #### Verify the Deployment Check that the container is running: ``` docker ps | grep telemetry-collector ``` Check the logs for successful startup: ``` docker logs telemetry-collector ``` Look for the same management and data connection logs described in the [Deploy in Cloud](/docs/deploying-telemetry-collector-in-docker#deploy-in-cloud) section above. ### Troubleshooting | Symptom | Cause | Resolution | | --- | --- | --- | | `x509: certificate signed by unknown authority` | Docker doesn't trust the Crosswork Assurance CA | Complete Step 2 above | | `unauthorized: authentication required` | Download token expired or invalid | Re-download the Sensor Collector package to get a fresh token | | `connection refused` on pull | Target host cannot reach Crosswork Assurance | Verify network connectivity and proxy settings | | Container exits without starting | Missing prerequisites | Ensure Docker is installed and the current user has Docker permissions | ### Related Documentation - [Integrated Registry for Sensor Collector](/latest/docs/oci-registry-for-sensor-collector) - [Sensor Collector System Requirements](/latest/docs/sensor-collector-system-requirements) - [Configure Sensor Collector](/latest/docs/configure-sensor-collector) **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)