Skip to content

Click in-app to access the full platform documentation for your version of DataRobot.

Remote environment workflow overview

To use the monitoring agent with a remote deployment environment, you must provide:

  • The URL of DataRobot MLOps.

  • An API key from DataRobot. You can configure this through the UI by going to the Developer Tools tab under account settings and finding the API Keys section.

Additionally, reference the documentation for creating and deploying a model package.

Monitoring agent and prediction reporting setup

The following sections outline how to configure both the machine using the monitoring agent to upload data, and the machine using the MLOps library to report predictions.

Monitoring agent configuration

Complete the following workflow for each machine using the monitoring agent to upload data to DataRobot MLOps. This setup only needs to be performed once for each deployment environment.

  1. Ensure that Java (version 8) is installed.
  2. Download the MLOps agent tarball, available through the Developer Tools tab. The tarball includes the monitoring agent and library software, example code, and associated scripts.
  3. Change the directory to the unpacked directory.
  4. Install the monitoring agent.
  5. Configure the monitoring agent.
  6. Run the agent service.

Host predictions

For each machine using the MLOps library to report predictions, ensure that appropriate libraries and requirements are installed. There are two locations where you can obtain the libraries:

Download the MLOps agent tarball and install the libraries:

  • Java: The Java library is included in the .tar file in lib/datarobot-mlops-<version>.jar.

  • Python: The Python version of the library is included in the .tar file in lib\datarobot_mlops-*-py2.py3-none-any.whl. This works for both Python2 and Python3. You can install it using:

    • pip install lib\datarobot_mlops-*-py2.py3-none-any.whl

Download the MLOps Python libraries from the Python Package Index site:

The MLOps agent .tar file includes several end-to-end examples in various languages.

Create and deploy a model package

A model package stores metadata about your external model: the problem type (e.g., regression), the training data used, and more. You can create a model package using the Model Registry and deploy it.

In the deployment's Integrations tab, you can view example code as well as the values for the MLOPS_DEPLOYMENT_ID and MLOPS_MODEL_ID that are necessary to report statistics from your deployment.

If you wish to instead create a model package using the API, you can follow the pattern used in the helper scripts in the examples directory for creating model packages and deployments. Each example has its own script to create the related model package and deployment. This script interacts with DataRobot MLOps directly and so must be run on a machine with connectivity to it. When run, each script outputs a deployment ID and model ID that are then used by the script, in which the model inference and subsequent metrics reporting actually happens.

Instrument deployments with the monitoring agent

To configure the monitoring agent with each deployment:

  1. Locate the MLOps library and sample code. These are included within the MLOps .tar file distribution.
  2. Configure the deployment ID and model ID in your environment.
  3. Instrument your code with MLOps calls as shown in the sample code provided for your programming language.
  4. To report results to DataRobot MLOps, you must configure the library to use the same channel as is configured in the agent. For testing, you can configure the library to output to stdout though these calls will not be forwarded to the agent or DataRobot MLOps. Configure the library via the :ref:mlops API <mlops-lib>.
  5. You can view your deployment in the DataRobot MLOps UI under the Deployments tab.

Updated June 2, 2022
Back to top