Monitor Infrastructure
Track CPU, memory, disk, and network metrics for your virtual machines via the monitoring API.
Base URL: https://cloud.octosinfra.com/backend/api
Get global monitoring overview
curl -X GET "https://cloud.octosinfra.com/backend/api/monitoring/global" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Get CPU usage
curl -X GET "https://cloud.octosinfra.com/backend/api/monitoring/{VIRTUAL_MACHINE_SLUG}/cpu-usage?monitoring_chart=cpu-usage&filter_by=24&hours=24" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Get memory usage
curl -X GET "https://cloud.octosinfra.com/backend/api/monitoring/{VIRTUAL_MACHINE_SLUG}/memory-usage?monitoring_chart=memory-usage&filter_by=24&hours=24" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Get disk read/write
curl -X GET "https://cloud.octosinfra.com/backend/api/monitoring/{VIRTUAL_MACHINE_SLUG}/disk-read-write?monitoring_chart=disk-read-write&filter_by=24&hours=24" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Get network traffic
curl -X GET "https://cloud.octosinfra.com/backend/api/monitoring/{VIRTUAL_MACHINE_SLUG}/network-traffic?monitoring_chart=network-traffic&filter_by=24&hours=24" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Endpoint reference
| Metric | Method | Endpoint |
|---|---|---|
| Global overview | GET | /monitoring/global |
| CPU usage | GET | /monitoring/{SLUG}/cpu-usage |
| Memory usage | GET | /monitoring/{SLUG}/memory-usage |
| Disk read/write | GET | /monitoring/{SLUG}/disk-read-write |
| Disk I/O | GET | /monitoring/{SLUG}/disk-io-read-write |
| Network traffic | GET | /monitoring/{SLUG}/network-traffic |
| Available charts | GET | /monitoring/charts |
tip
The filter_by and hours query parameters control the time range for monitoring data. Common values are 24 (last 24 hours), 168 (last 7 days), and 720 (last 30 days).