# Monitoring code snippets (external deployments)

> Monitoring code snippets (external deployments) - Access monitoring snippets on an external model
> deployment's **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-05-06T18:17:10.034832+00:00` (UTC).

## Primary page

- [Monitoring code snippets (external deployments)](https://docs.datarobot.com/en/docs/workbench/nxt-console/nxt-predictions/nxt-monitoring.html): Full documentation for this topic (HTML).

## Related documentation

- [NextGen UI documentation](https://docs.datarobot.com/en/docs/workbench/index.html): Linked from this page.
- [Console](https://docs.datarobot.com/en/docs/workbench/nxt-console/index.html): Linked from this page.
- [Predictions](https://docs.datarobot.com/en/docs/workbench/nxt-console/nxt-predictions/index.html): Linked from this page.
- [monitoring agent](https://docs.datarobot.com/en/docs/classic-ui/mlops/deployment/mlops-agent/index.html): Linked from this page.
- [included in the tarball](https://docs.datarobot.com/en/docs/platform/acct-settings/api-key-mgmt.html#monitoring-agent-tarball): 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). 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.
