{"slug":"datarobot-model-monitoring","title":"datarobot-model-monitoring","summary":"Tools and guidance for monitoring model performance, tracking data drift, managing model health, and detecting prediction anomalies. Use when monitoring deployed models, tracking drift, or investigating prediction anomalies.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-09-11T17:36:45.296944Z","repo":{"url":"https://github.com/datarobot-oss/datarobot-agent-skills","stars":27,"forks":24,"license":"Apache-2.0","updatedAt":"2026-09-30T16:38:48Z"},"bodyHtml":"<hr>\n<h2>name: datarobot-model-monitoring\ndescription: Tools and guidance for monitoring model performance, tracking data drift, managing model health, and detecting prediction anomalies. Use when monitoring deployed models, tracking drift, or investigating prediction anomalies.</h2>\n<h1>DataRobot Model Monitoring Skill</h1>\n<p>This skill provides comprehensive guidance for monitoring deployed models, tracking performance metrics, detecting data drift, and managing model health.</p>\n<h2>Quick Start</h2>\n<p><strong>Most common use case</strong>: Check deployment health and data drift</p>\n<ol>\n<li><strong>Check service stats</strong>: <code>deployment.get_service_stats(...)</code> to review prediction volume/latency</li>\n<li><strong>Check drift</strong>: <code>deployment.get_feature_drift(...)</code> / <code>deployment.get_target_drift(...)</code></li>\n<li><strong>Compare over time</strong>: Use <code>get_service_stats_over_time(...)</code> and drift periods to assess trends</li>\n</ol>\n<p><strong>Example</strong>: \"Check the health of deployment abc123 and report any data drift issues\"</p>\n<h2>When to use this skill</h2>\n<p>Use this skill when you need to:</p>\n<ul>\n<li>Monitor model performance in production</li>\n<li>Track data drift and feature drift</li>\n<li>Detect prediction anomalies</li>\n<li>Monitor prediction accuracy over time</li>\n<li>Set up alerts for model degradation</li>\n<li>Analyze model health metrics</li>\n<li>Compare production performance to training performance</li>\n</ul>\n<h2>Key capabilities</h2>\n<h3>1. Performance Monitoring</h3>\n<ul>\n<li>Track prediction accuracy and metrics over time</li>\n<li>Compare production metrics to training metrics</li>\n<li>Monitor prediction volume and latency</li>\n<li>Identify performance degradation trends</li>\n</ul>\n<h3>2. Data Drift Detection</h3>\n<ul>\n<li>Detect changes in feature distributions</li>\n<li>Identify feature drift (statistical changes)</li>\n<li>Monitor target drift (if actuals available)</li>\n<li>Alert on significant drift events</li>\n</ul>\n<h3>3. Prediction Monitoring</h3>\n<ul>\n<li>Monitor prediction distributions</li>\n<li>Detect prediction anomalies</li>\n<li>Track prediction confidence scores</li>\n<li>Identify unusual prediction patterns</li>\n</ul>\n<h3>4. Health Management</h3>\n<ul>\n<li>Assess overall model health</li>\n<li>Generate monitoring reports</li>\n<li>Set up automated alerts</li>\n<li>Manage model retraining triggers</li>\n</ul>\n<h2>Workflow examples</h2>\n<h3>Example 1: Check model health and drift</h3>\n<p><strong>User request</strong>: \"Check the health of deployment abc123 and report any data drift issues.\"</p>\n<p><strong>Agent workflow</strong>:</p>\n<ol>\n<li>Get deployment monitoring status</li>\n<li>Retrieve recent performance metrics</li>\n<li>Check for data drift in key features</li>\n<li>Compare current metrics to baseline (training)</li>\n<li>Identify any significant drift or degradation</li>\n<li>Report findings with recommendations</li>\n</ol>\n<h3>Example 2: Set up drift monitoring alerts</h3>\n<p><strong>User request</strong>: \"Set up alerts for deployment xyz789 to notify when feature drift exceeds 0.2.\"</p>\n<p><strong>Agent workflow</strong>:</p>\n<ol>\n<li>Get deployment configuration</li>\n<li>Configure drift threshold (0.2)</li>\n<li>Set up alert notifications</li>\n<li>Specify which features to monitor</li>\n<li>Test alert configuration</li>\n<li>Confirm monitoring is active</li>\n</ol>\n<h2>Using DataRobot SDK</h2>\n<p>This skill guides you to use the DataRobot Python SDK directly. Install the SDK if needed:</p>\n<pre><code>pip install datarobot\n</code></pre>\n<h3>Key SDK Operations</h3>\n<p>Use these DataRobot SDK and MLOps API methods for monitoring:</p>\n<p><strong>Deployment Monitoring</strong>:</p>\n<ul>\n<li><code>deployment.get_service_stats(...)</code> - Get service statistics (latency, volume, etc.)</li>\n<li><code>deployment.get_feature_drift(...)</code> - Get feature drift metrics (returns <code>FeatureDrift</code> objects)</li>\n<li><code>deployment.get_target_drift(...)</code> - Get target drift metrics (returns <code>TargetDrift</code>)</li>\n<li><code>deployment.get_prediction_results(...)</code> - Retrieve recorded prediction results (if enabled)</li>\n</ul>\n<p><strong>Model Performance</strong>:</p>\n<ul>\n<li><code>model.metrics</code> - Model performance metrics (dict of <code>{metric: {partition: score}}</code>)</li>\n<li><code>model.get_roc_curve()</code> - Get ROC curve for comparison</li>\n</ul>\n<p><strong>Note</strong>: Some monitoring features may require DataRobot MLOps API. See the <a href=\"#common-patterns\">Common Patterns</a> section below for examples.</p>\n<h2>Best practices</h2>\n<ol>\n<li><strong>Regular monitoring</strong>: Check model health regularly, not just when issues arise</li>\n<li><strong>Baseline comparison</strong>: Always compare production metrics to training baseline</li>\n<li><strong>Drift thresholds</strong>: Set appropriate drift thresholds based on your domain</li>\n<li><strong>Key features</strong>: Focus monitoring on high-importance features</li>\n<li><strong>Automated alerts</strong>: Set up alerts for critical issues</li>\n<li><strong>Historical analysis</strong>: Track trends over time, not just point-in-time metrics</li>\n</ol>\n<h2>Common patterns</h2>\n<h3>Pattern 1: Health check</h3>\n<pre><code>import datarobot as dr\n\n# Initialize client\ndr.Client()\n\n# Get deployment\ndeployment = dr.Deployment.get(\"abc123\")\n\n# Get service stats (requires MLOps monitoring to be enabled)\n# ServiceStats exposes values via the .metrics dict, not as attributes.\nstats = deployment.get_service_stats()\nprint(f\"Prediction count: {stats.metrics['totalPredictions']}\")\nprint(f\"Mean response time (ms): {stats.metrics['responseTime']}\")\n\n# Get recorded prediction results (if available / enabled)\ntry:\n    recent = deployment.get_prediction_results(limit=10)\n    print(f\"Recent prediction results: {len(recent)}\")\nexcept Exception as e:\n    print(f\"Prediction results not available: {e}\")\n</code></pre>\n<h3>Pattern 2: Drift detection</h3>\n<pre><code>import datarobot as dr\n\n# Get deployment\ndeployment = dr.Deployment.get(\"abc123\")\n\n# Get feature drift (requires MLOps monitoring)\ntry:\n    drifts = deployment.get_feature_drift()\n    high = [d for d in drifts if (d.drift_score or 0) &gt; 0.2]\n    print(f\"Features with drift_score &gt; 0.2: {len(high)}\")\n    for d in high[:10]:\n        print(f\"{d.name}: {d.drift_score}\")\nexcept Exception as e:\n    print(f\"Feature drift requires MLOps monitoring: {e}\")\n</code></pre>\n<h2>Monitoring metrics</h2>\n<h3>Performance Metrics</h3>\n<ul>\n<li><strong>Accuracy</strong>: Prediction accuracy (classification)</li>\n<li><strong>RMSE/MAE</strong>: Prediction error (regression)</li>\n<li><strong>AUC</strong>: Model discrimination (classification)</li>\n<li><strong>Prediction volume</strong>: Number of predictions made</li>\n</ul>\n<h3>Drift Metrics</h3>\n<ul>\n<li><strong>Feature drift</strong>: Statistical changes in feature distributions</li>\n<li><strong>Target drift</strong>: Changes in target distribution (if available)</li>\n<li><strong>Prediction drift</strong>: Changes in prediction distributions</li>\n<li><strong>Drift score</strong>: Overall drift severity (0-1 scale)</li>\n</ul>\n<h2>Alert thresholds</h2>\n<p>Recommended thresholds:</p>\n<ul>\n<li><strong>High drift</strong>: &gt; 0.3 (significant changes, investigate immediately)</li>\n<li><strong>Medium drift</strong>: 0.15-0.3 (moderate changes, monitor closely)</li>\n<li><strong>Low drift</strong>: &lt; 0.15 (minor changes, normal variation)</li>\n</ul>\n<p>Adjust thresholds based on your domain and use case sensitivity.</p>\n<h2>Model health status</h2>\n<ul>\n<li><strong>Healthy</strong>: Performance within expected range, minimal drift</li>\n<li><strong>Degrading</strong>: Performance declining, some drift detected</li>\n<li><strong>Unhealthy</strong>: Significant performance issues or high drift</li>\n<li><strong>Unknown</strong>: Insufficient data for assessment</li>\n</ul>\n<h2>Error handling</h2>\n<p>Common errors and solutions:</p>\n<ul>\n<li><strong>Insufficient data</strong>: Need minimum prediction volume for monitoring</li>\n<li><strong>Baseline unavailable</strong>: Ensure training baseline is available</li>\n<li><strong>Access issues</strong>: Verify deployment permissions and access</li>\n</ul>\n<h2>SDK Setup</h2>\n<h3>Install DataRobot SDK</h3>\n<pre><code>pip install datarobot\n</code></pre>\n<h3>Initialize Client</h3>\n<pre><code>import datarobot as dr\n\ndr.Client()\n</code></pre>\n<p><strong>Note</strong>: Some monitoring features require DataRobot MLOps API access. Check your DataRobot plan for MLOps availability.</p>\n<h2>Resources</h2>\n<ul>\n<li><a href=\"https://datarobot-public-api-client.readthedocs-hosted.com/\">DataRobot Python SDK Documentation</a></li>\n<li><a href=\"https://docs.datarobot.com/en/docs/mlops/monitor/index.html\">DataRobot Model Monitoring Documentation</a></li>\n</ul>\n","files":[{"path":"SKILL.md","sizeBytes":7291,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-09-11T17:37:02.489974Z","sha256":"FEBD58FC79A25777F4767E1735CD0E8CCAD1E04247704EB5291919C2FCE3BC47","sizeBytes":2727},"review":null,"source":{"repositoryUrl":"https://github.com/datarobot-oss/datarobot-agent-skills","path":"skills/datarobot-model-monitoring","license":"Apache-2.0","commit":"f6b0b7951e36cad48f0c5a2f719cbf5487c66056","subtreeSha":"4E9BF7522932CFD53DA32EF5FFD30BE25B60FC1A624E21BE6491B3F1BD565F01","lastSyncedAt":"2026-10-01T15:24:32.284199Z"},"reviewedAt":"2026-09-11T17:40:12.951954Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/datarobot-oss/datarobot-agent-skills/tree/main/skills/datarobot-model-monitoring"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install datarobot-oss-datarobot-agent-skills@llmmart"},{"target":"git","command":"git clone https://github.com/datarobot-oss/datarobot-agent-skills.git"}]}