Skip to main content
Version: 0.18.21

Deploy the GX Agent

info

For access to the GX Agent, reach out to Support at support@greatexpectations.io.

GX Cloud is a fully hosted data quality solution and you do not need to deploy the GX Agent to make use of its full suite of features. However, you can optionally deploy the GX Agent to exert additional control over how users access GX Cloud and how data is accessed by GX Cloud processes.

The GX Agent is an intermediary between GX Cloud and your organization's data stores. GX Cloud does not connect directly to your data with this deployment option, and all data access occurs within the GX Agent. GX Cloud sends jobs to the GX Agent, the GX Agent executes these jobs against your data, and then sends the job results to GX Cloud.

A local deployment of the GX Agent will allow you to test GX Cloud setup or processes from a single machine before moving to a shared production deployment. Alternatively, you can deploy the GX Agent to your development environment and leverage GX Cloud while connecting to Data Sources using your organization's cloud infrastructure, for enhanced control and security.

GX Agent versioning

GX uses a date-based versioning format for its weekly GX Agent Docker image releases: YYYYMMMDD.# for stable releases and YYYYMMDD.#.dev# for pre-releases. GX uses the stable and dev Docker image tags to identify the release type. The stable tag indicates the image is fully tested and ready for use. The dev tag indicates a pre-release image. This documentation assumes you're using the latest stable GX Agent Docker image.

Prerequisites

Get your access token and organization ID

You need your access token and organization ID to deploy the GX Agent. Access tokens shouldn't be committed to version control software.

If you've used GX Cloud previously, you have your access token and organization ID, and you need to restart the GX Agent, see Deploy the GX Agent.

  1. Sign in to GX Cloud.

  2. Complete the survey and then click Continue to GX Cloud.

  3. Copy and then paste the Access token and Organization ID values into a temporary file. You'll need them to deploy the GX Agent.

  4. Click Deploy the GX Agent and deploy the GX Agent.

Deploy the GX Agent

The GX Agent allows you to securely access your data without connecting to it or interacting with it directly. To learn more about the GX Agent and deployment patterns, see About GX Cloud.

Prerequisites

You can deploy the GX Agent container in any deployment environment where you can run Docker container images.

To learn how to deploy a Docker container image in a specific environment, see the following documentation:

You can deploy the GX Agent in any environment in which you create Kubernetes clusters. For example:

  1. Download the GX Agent Docker container image from Docker Hub.

  2. After configuring your cloud service to run Docker containers, run the following Docker command to start the GX Agent:

    Terminal input
    docker run -it \
    -e GX_CLOUD_ACCESS_TOKEN= YOUR_ACCESS_TOKEN \
    -e GX_CLOUD_ORGANIZATION_ID= YOUR_ORGANIZATION_ID \
    greatexpectations/agent:stable

    Replace YOUR_ACCESS_TOKEN and YOUR_ORGANIZATION_ID with the values you copied previously.

  3. Optional. If you created a temporary file to record your user access token and Organization ID, delete it.

  4. Optional. Run the following command to use the GX Agent image as the base image and optionally add custom commands:

    Terminal input
    FROM greatexpectations/agent
    RUN echo "custom_commands"
  5. Optional. Run the following command to rebuild the Docker image:

    Terminal input
    docker build -t myorg/agent
  6. Optional. Run docker ps or open Docker Desktop to confirm the agent is running.

View GX Cloud logs

If you encounter an issue deploying the GX Agent or performing a GX Cloud task, review log information to troubleshoot the cause and determine a fix.

  1. In GX Cloud, click Logs.

  2. Click Show log next to a log entry to display additional log details.

  3. Optional. Click Hide log to close the log details view.

Next steps

Want to continue testing GX Cloud features and functionality?

Ready to connect GX Cloud to your deployment environment?