Get Droplet Bandwidth Metrics
To retrieve bandwidth metrics for a given Droplet, send a GET request to /v2/monitoring/metrics/droplet/bandwidth. Use the interface query parameter to specify if the results should be for the private or public interface. Use the direction query parameter to specify if the results should be for inbound or outbound traffic. The metrics in the response body are in megabits per second (Mbps).
Query parameters
The droplet ID.
The network interface.
The traffic direction.
UNIX timestamp to start metric window.
UNIX timestamp to end metric window.
Response
The response will be a JSON object with a key called data and status.
Example response
{
"data": {
"result": [
{
"metric": {
"host_id": "19201920"
},
"values": [
[
1435781430,
"1"
],
[
1435781445,
"1"
]
]
}
],
"resultType": "matrix"
},
"status": "success"
}Changes
Changed in 4 of the 8 revisions of this API.14
- ○
api tag
DigitalOcean-public.v2-new_Monitoringaddedapi-tag-added
- ○
api tag
Monitoringremovedapi-tag-removed
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
This revision also has 70 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 436 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 70 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○