# Monitoring code snippets (external deployments)

> Monitoring code snippets (external deployments) - Access monitoring snippets on an external model
> deployment **Predictions > Monitoring** tab.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-10-09T14:05:25.078130+00:00` (UTC).

## Primary page

- [Monitoring code snippets (external deployments)](https://docs.datarobot.com/en/docs/workbench/console/prediction-tools/monitoring.html.md): Full documentation for this topic (Markdown sidecar).

## Sections on this page

- [Next steps](https://docs.datarobot.com/en/docs/workbench/console/prediction-tools/monitoring.html.md#next-steps): In-page section heading.

## Related documentation

- [NextGen UI documentation](https://docs.datarobot.com/en/docs/workbench/index.html.md): Linked from this page.
- [Console](https://docs.datarobot.com/en/docs/workbench/console/index.html.md): Linked from this page.
- [Predictions](https://docs.datarobot.com/en/docs/workbench/console/prediction-tools/index.html.md): Linked from this page.
- [monitoring agent](https://docs.datarobot.com/en/docs/classic-ui/mlops/deployment/mlops-agent/index.html.md): Linked from this page.
- [included in the tarball](https://docs.datarobot.com/en/docs/platform/acct-settings/api-key-mgmt.html.md#monitoring-agent-tarball): Linked from this page.
- [Monitoring agent](https://docs.datarobot.com/en/docs/classic-ui/mlops/deployment/mlops-agent/monitoring-agent/index.html.md): Linked from this page.
- [Add external prediction environments](https://docs.datarobot.com/en/docs/workbench/console/prediction-environments/ext-pred-env.html.md): Linked from this page.
- [Portable predictions](https://docs.datarobot.com/en/docs/workbench/console/prediction-tools/portable-predictions.html.md): Linked from this page.

## Documentation content

When you create an external model deployment, you are notified that the deployment requires the use of monitoring snippets to report deployment statistics with the [monitoring agent](https://docs.datarobot.com/en/docs/classic-ui/mlops/deployment/mlops-agent/index.html.md). You can access these monitoring snippets on an external model deployment's Predictions > Monitoring tab. The monitoring snippet is designed to configure your MLOps library to send a model's statistics to DataRobot MLOps and represent those statistics in the deployment. Use this functionality to report back Scoring Code metrics to your deployment.

Navigate to Predictions > Monitoring for your deployment to view the snippet:

|  | Content | Description |
| --- | --- | --- |
| (1) | Language | Select the Language for the monitoring code snippet. To monitor Scoring Code with a deployment, select the Java language and copy the snippet to your clipboard. For further instructions, reference the monitoring agent's internal documentation. |
| (2) | Copy to clipboard | Copy the monitoring snippet in the selected language to implement monitoring for an external model deployment. |
| (3) | Download Monitoring Agent | If you have not yet configured the monitoring agent to monitor your deployment, download the MLOps agent tarball. Additional documentation for setting up the monitoring agent is included in the tarball. |

> [!NOTE] Java requirement
> The MLOps monitoring library requires Java 11 or higher. Without monitoring, a model's Scoring Code JAR file requires Java 8 or higher; however, when using the MLOps library to instrument monitoring, a model's Scoring Code JAR file requires Java 11 or higher.For Self-managed AI platform installations, the Java 11 requirement applies to DataRobot v11.0 and higher.

## Next steps

After implementing the monitoring snippet for your external deployment, set up the monitoring agent or explore other prediction options.

- Monitoring agent : Set up the remote monitoring agent environment used to report statistics back to DataRobot MLOps.
- Add external prediction environments : Group external deployments by environment to manage deployment permissions and approval workflows.
- Portable predictions : Learn about scoring data outside of DataRobot with the Portable Prediction Server or Scoring Code.
