Metrics collected per tenant and per bucket can be queried using the VMS REST API. These metrics enable you to monitor S3 traffic, requests and errors.
Bucket-level metrics are aggregated per bucket every minute and retained for 24 hours.
Tenant-level performance metrics are collected every ten seconds.
Available Metrics
The following are the metrics that can be queried by external systems using the VMS REST API:
Note
Latency is measured in ms.
Object Type | Class | Metric | Description |
|---|---|---|---|
|
|
| The number of HEAD requests. |
| The number of PUT requests. | ||
| The number of GET requests. | ||
| The number of POST requests. | ||
| The number of DELETE requests. | ||
| The number of requests for which the server returned a 4xx HTTP error code. | ||
| The number of requests for which the server returned a 5xx HTTP error code. | ||
Tenant | TenantMetrics |
| The number of samples of write I/O per second. |
| The number of samples of bandwidth (uploaded/downloaded bytes per second) for read operations. | ||
| The sum of the squares of all samples of read metadata I/O operations per second. | ||
| The number of latency samples for write operations. | ||
| The sum of the sampled values of bandwidth (uploaded/downloaded bytes per second) for write operations. | ||
| The sum of the squares of latency samples for write operations. | ||
| The number of latency samples for metadata read operations. | ||
| The sum of the squares of bandwidth (uploaded/downloaded bytes per second) for read operations. | ||
| The sum of latency samples for read operations. | ||
| The sum of latency samples for write metadata operations. | ||
| The number of samples of metadata write I/O operations per second, | ||
| The sum of latency samples for write operations. | ||
| The sum of the sampled values of write I/O operations per second, | ||
| The number of latency samples for metadata write operations. | ||
| The sum of the sampled values of metadata read I/O operations per second, | ||
| The sum of the sampled values of bandwidth (uploaded/downloaded bytes per second) for read operations. | ||
| The sum of latency samples for metadata read operations. | ||
| The sum of the squares of all samples of metadata write I/O operations per second. | ||
| The number of samples of read I/O operations per second. | ||
| The sum of the sampled values of read I/O operations per second, | ||
| The sum of the sampled values of bandwidth (uploaded/downloaded bytes per second) for write operations. | ||
| The number of latency samples for read operations. | ||
| The sum of the squares of all samples of bandwidth (uploaded/downloaded bytes per second) for write operations. | ||
| The sum of the squares of all samples of read I/O operations per second. | ||
| The sum of the squares of all samples of write I/O operations per second. | ||
| The sum of the squares of latency samples for read operations. | ||
| The number of samples of metadata read I/O operations per second. | ||
| The sum of the sampled values of metadata write I/O operations per second, | ||
| The sum of the squares of latency samples for metadata write operations. | ||
| The sum of the squares of latency samples for metadata read operations. |
How to Query the Metrics
You can use the following VMS REST API endpoints to query the metrics:
To get object IDs for tenants, send a GET request to the
/tenants/endpoint.To get object IDs for views, send a GET request to the
/views/endpoint.To create a custom analytics report for specified metrics, send a POST request to the
/monitors/endpoint.To query an analytics report: GET request to the
/monitors/{id}/query/endpoint, where id is the ID of the report.To run a query for specified metrics: GET request to the
/monitors/ad_hoc_query/endpoint.
For information about these endpoints, see the VAST Management Service (VMS) REST API Documentation. You can access this documentation at <VMS IP>/docs.