examples/otel-dashboards/new-relic/README.md
This directory contains a pre-configured New Relic dashboard for monitoring Daytona Sandbox resources including CPU, Memory, and Disk utilization.
The dashboard provides comprehensive monitoring across multiple pages:
jq installed (for the automated setup script)newrelic) installed (optional, for CLI import)Before importing, you need to add your Account ID into the dashboard.json.
jq --arg account_id "YOUR_ACCOUNT_ID" 'walk(if type == "object" and has("accountIds") then .accountIds = [($account_id | tonumber)] else . end)' dashboard.json > dashboard-configured.json
Replace YOUR_ACCOUNT_ID with your actual numeric Account ID (e.g., 1234567).
Example:
jq --arg account_id "1234567" 'walk(if type == "object" and has("accountIds") then .accountIds = [($account_id | tonumber)] else . end)' dashboard.json > dashboard-configured.json
This will create dashboard-configured.json ready for import.
Find Your Account ID:
Prepare the Dashboard:
jq --arg account_id "YOUR_ACCOUNT_ID" 'walk(if type == "object" and has("accountIds") then .accountIds = [($account_id | tonumber)] else . end)' dashboard.json > dashboard-configured.json
Import the Dashboard:
dashboard-configured.jsonVerify:
Each resource type (CPU, Memory, Disk) has a dedicated page with:
The dashboard includes pre-configured alert severities:
All metrics are prefixed with daytona.sandbox.:
cpu.utilization: CPU usage percentagecpu.limit: CPU cores limitmemory.utilization: Memory usage percentagememory.usage: Memory used in bytesmemory.limit: Memory limit in bytesfilesystem.utilization: Disk usage percentagefilesystem.usage: Disk space used in bytesfilesystem.available: Available disk space in bytesfilesystem.total: Total disk space in bytesjq . dashboard-configured.jsonIf the command fails:
jq: brew install jq (macOS) or apt-get install jq (Linux)jq --versionTo modify the dashboard:
dashboard.json with your customized version