All Products
Search
Document Center

Object Storage Service:Access monitoring data

Last Updated:Mar 24, 2026

CloudMonitor provides metrics for monitoring the status, performance, and usage of Object Storage Service (OSS). Query these metrics programmatically to track request volume, analyze traffic patterns, identify errors, and diagnose issues.

This topic covers API and SDK-based querying. To view monitoring data in the console, see Monitoring OSS with CloudMonitor.
For CloudMonitor SDK sample code, see SDK reference.

Metric types

OSS metrics fall into two categories. Choose the Period value based on the type you need:

TypeWhat it measuresPeriod (seconds)Scope
Non-metering metricsOperational data: request counts, traffic, latency, error rates60Account level or bucket level
Metering metricsBilling-related data: storage usage, billable request volume3600Account level or bucket level

For billing details on metering metrics, see Billable usage metrics.

Query parameters

Each CloudMonitor API call requires five parameters. The examples in this topic use the CloudMonitor SDK for Java.

ParameterDescription
NamespaceThe cloud service to monitor. Always set to acs_oss_dashboard for OSS.
StartTime / EndTimeThe query time range as a left-open, right-closed interval (StartTime, EndTime]. The interval cannot exceed 31 days, and only data from the past 31 days is available.
DimensionsFilters the query to a specific bucket. Set to {"BucketName":"examplebucket"} to query a single bucket. Omit to get account-level data aggregated across all buckets.
PeriodThe metric sampling interval in seconds: 60 for non-metering metrics, 3600 for metering metrics.
MetricThe specific metric to query, passed to setMetric().

Complete example

The following example queries the TotalRequestCount metric for a specific bucket over a one-hour window. All parameters are assembled in a single call.

import com.aliyuncs.cms.model.v20190101.DescribeMetricListRequest;
import com.aliyuncs.cms.model.v20190101.DescribeMetricListResponse;

DescribeMetricListRequest request = new DescribeMetricListRequest();

// Target OSS metrics
request.setNamespace("acs_oss_dashboard");

// Set the query time range (left-open, right-closed interval)
request.setEndTime("2019-05-13 11:06:27");
request.setStartTime("2019-05-13 10:20:27");

// Scope to a specific bucket; omit this line for account-level data
request.setDimensions("{\"BucketName\":\"examplebucket\"}");

// Use 60s for non-metering metrics, 3600s for metering metrics
request.setPeriod("60");

// Specify the metric to query
request.setMetric("TotalRequestCount");

DescribeMetricListResponse response = client.getAcsResponse(request);
System.out.println(response.getDatapoints());

Set individual parameters

Namespace

Set Namespace to acs_oss_dashboard to query OSS metrics.

DescribeMetricListRequest request = new DescribeMetricListRequest();
request.setNamespace("acs_oss_dashboard");

StartTime and EndTime

StartTime and EndTime define the query time range as a left-open, right-closed interval (StartTime, EndTime]. The interval cannot exceed 31 days, and only data from the past 31 days is available.

// Set the end time of the query range.
request.setEndTime("2019-05-13 11:06:27");
// Set the start time of the query range.
request.setStartTime("2019-05-13 10:20:27");

Dimensions

Dimensions filters the query to a specific bucket. Omit it to get account-level data aggregated across all buckets.

// Query monitoring data for a specific bucket.
request.setDimensions("{\"BucketName\":\"examplebucket\"}");

Period

Period sets the metric sampling interval in seconds:

  • 60 — non-metering metrics (request counts, traffic, latency, error rates)

  • 3600 — metering metrics (storage usage, billable GET/PUT request counts)

// Set the sampling interval for a non-metering metric.
request.setPeriod("60");

Metric

Metric specifies which metric to query. Pass the metric name from the tables below to setMetric(). To browse all available metrics, see the Metric list page.

// Set the metric name.
request.setMetric("<MetricName>");

Available metrics

Non-metering metrics (Period: 60s)

Non-metering metrics are available at two levels:

  • Account level — aggregated across all buckets under your account. Omit Dimensions to query these.

  • Bucket level — scoped to a single bucket. Set Dimensions to the target bucket name.

Account-level metrics

MetricDescriptionUnit
UserAvailabilityAvailability%
UserRequestValidRatePercentage of valid requests%
UserTotalRequestCountTotal number of requests
UserValidRequestCountNumber of valid requests
UserInternetSendOutbound traffic over the InternetBytes
UserInternetRecvInbound traffic over the InternetBytes
UserIntranetSendOutbound traffic over the internal networkBytes
UserIntranetRecvInbound traffic over the internal networkBytes
UserCdnSendOutbound traffic from Alibaba Cloud CDNBytes
UserCdnRecvInbound traffic to Alibaba Cloud CDNBytes
UserSyncSendOutbound traffic generated by cross-region replication (CRR)Bytes
UserSyncRecvInbound traffic generated by CRRBytes
UserServerErrorCountTotal requests that encountered server errors
UserServerErrorRatePercentage of requests that encountered server errors%
UserNetworkErrorCountTotal requests that encountered network errors
UserNetworkErrorRatePercentage of requests that encountered network errors%
UserAuthorizationErrorCountTotal failed authorization requests
UserAuthorizationErrorRatePercentage of failed authorization requests%
UserResourceNotFoundErrorCountTotal requests that failed because the resource does not exist
UserResourceNotFoundErrorRatePercentage of requests that failed because the resource does not exist%
UserClientTimeoutErrorCountTotal requests that failed due to client timeouts
UserClientTimeoutErrorRatePercentage of requests that failed due to client timeouts%
UserClientOtherErrorCountTotal requests that encountered other client errors
UserClientOtherErrorRatePercentage of requests that encountered other client errors%
UserSuccessCountTotal successful requests
UserSuccessRatePercentage of successful requests%
UserRedirectCountTotal redirection requests
UserRedirectRatePercentage of redirection requests%

Bucket-level metrics

General metrics

MetricDescriptionUnit
AvailabilityAvailability%
RequestValidRatePercentage of valid requests%
TotalRequestCountTotal number of requests
ValidRequestCountNumber of valid requests
InternetSendOutbound traffic over the InternetBytes
InternetRecvInbound traffic over the InternetBytes
IntranetSendOutbound traffic over the internal networkBytes
IntranetRecvInbound traffic over the internal networkBytes
InternetSendBandwidthOutbound bandwidth over the Internetbps
InternetRecvBandwidthInbound bandwidth over the Internetbps
IntranetSendBandwidthOutbound bandwidth over the internal networkbps
IntranetRecvBandwidthInbound bandwidth over the internal networkbps
CdnSendOutbound traffic from Alibaba Cloud CDNBytes
CdnRecvInbound traffic to Alibaba Cloud CDNBytes
SyncSendOutbound traffic generated by CRRBytes
SyncRecvInbound traffic generated by CRRBytes
ServerErrorCountTotal requests that encountered server errors
ServerErrorRatePercentage of requests that encountered server errors%
NetworkErrorCountTotal requests that encountered network errors
NetworkErrorRatePercentage of requests that encountered network errors%
AuthorizationErrorCountTotal failed authorization requests
AuthorizationErrorRatePercentage of failed authorization requests%
ResourceNotFoundErrorCountTotal requests that failed because the resource does not exist
ResourceNotFoundErrorRatePercentage of requests that failed because the resource does not exist%
ClientTimeoutErrorCountTotal requests that failed due to client timeouts
ClientTimeoutErrorRatePercentage of requests that failed due to client timeouts%
ClientOtherErrorCountTotal requests that encountered other client errors
ClientOtherErrorRatePercentage of requests that encountered other client errors%
SuccessCountTotal successful requests
SuccessRatePercentage of successful requests%
RedirectCountTotal redirection requests
RedirectRatePercentage of redirection requests%

GetObject latency

MetricDescriptionUnit
GetObjectE2eLatencyAverage end-to-end (E2E) latency of GetObject requestsMilliseconds
GetObjectServerLatencyAverage server-side latency of GetObject requests, excluding network transfer timeMilliseconds
MaxGetObjectE2eLatencyMaximum E2E latency of GetObject requestsMilliseconds
MaxGetObjectServerLatencyMaximum server-side latency of GetObject requestsMilliseconds

HeadObject latency

MetricDescriptionUnit
HeadObjectE2eLatencyAverage E2E latency of HeadObject requestsMilliseconds
HeadObjectServerLatencyAverage server-side latency of HeadObject requestsMilliseconds
MaxHeadObjectE2eLatencyMaximum E2E latency of HeadObject requestsMilliseconds
MaxHeadObjectServerLatencyMaximum server-side latency of HeadObject requestsMilliseconds

PutObject latency

MetricDescriptionUnit
PutObjectE2eLatencyAverage E2E latency of PutObject requestsMilliseconds
PutObjectServerLatencyAverage server-side latency of PutObject requestsMilliseconds
MaxPutObjectE2eLatencyMaximum E2E latency of PutObject requestsMilliseconds
MaxPutObjectServerLatencyMaximum server-side latency of PutObject requestsMilliseconds

PostObject latency

MetricDescriptionUnit
PostObjectE2eLatencyAverage E2E latency of PostObject requestsMilliseconds
PostObjectServerLatencyAverage server-side latency of PostObject requestsMilliseconds
MaxPostObjectE2eLatencyMaximum E2E latency of PostObject requestsMilliseconds
MaxPostObjectServerLatencyMaximum server-side latency of PostObject requestsMilliseconds

AppendObject latency

MetricDescriptionUnit
AppendObjectE2eLatencyAverage E2E latency of AppendObject requestsMilliseconds
AppendObjectServerLatencyAverage server-side latency of AppendObject requestsMilliseconds
MaxAppendObjectE2eLatencyMaximum E2E latency of AppendObject requestsMilliseconds
MaxAppendObjectServerLatencyMaximum server-side latency of AppendObject requestsMilliseconds

UploadPart latency

MetricDescriptionUnit
UploadPartE2eLatencyAverage E2E latency of UploadPart requestsMilliseconds
UploadPartServerLatencyAverage server-side latency of UploadPart requestsMilliseconds
MaxUploadPartE2eLatencyMaximum E2E latency of UploadPart requestsMilliseconds
MaxUploadPartServerLatencyMaximum server-side latency of UploadPart requestsMilliseconds

UploadPartCopy latency

MetricDescriptionUnit
UploadPartCopyE2eLatencyAverage E2E latency of UploadPartCopy requestsMilliseconds
UploadPartCopyServerLatencyAverage server-side latency of UploadPartCopy requestsMilliseconds
MaxUploadPartCopyE2eLatencyMaximum E2E latency of UploadPartCopy requestsMilliseconds
MaxUploadPartCopyServerLatencyMaximum server-side latency of UploadPartCopy requestsMilliseconds

Request counts by operation

MetricDescriptionUnit
GetObjectCountNumber of successful GetObject requests
HeadObjectCountNumber of successful HeadObject requests
PutObjectCountNumber of successful PutObject requests
PostObjectCountNumber of successful PostObject requests
AppendObjectCountNumber of successful AppendObject requests
UploadPartCountNumber of successful UploadPart requests
UploadPartCopyCountNumber of successful UploadPartCopy requests
DeleteObjectCountNumber of successful DeleteObject requests
DeleteObjectsCountNumber of successful DeleteObjects requests

Mirroring-based back-to-origin metrics

MetricDescriptionUnit
MirrorTrafficInbound traffic from a specific origin for legitimate requestsBytes
MirrorTrafficByStatusInbound traffic from a specific origin, broken down by HTTP status codeBytes
MirrorRequestTransferSpeedAverage transfer speed of legitimate requests to a specific originBytes/s
MirrorRequestTransferSpeedByStatusAverage transfer speed, broken down by HTTP status codeBytes/s
MirrorRequestCountTotal legitimate requests to a specific origin
MirrorRequestCountByStatusTotal legitimate requests, broken down by HTTP status code
MirrorAverageLatencyAverage latency of legitimate requests to a specific originMilliseconds
MirrorAverageLatencyByStatusAverage latency, broken down by HTTP status codeMilliseconds
MirrorRequestStatusRatioPercentage of requests to a specific origin, broken down by HTTP status group (2xx, 3xx, 4xx, 5xx)%
MirrorRequestStatusCountTotal requests to a specific origin, broken down by HTTP status group (2xx, 3xx, 4xx, 5xx)

Metering metrics (Period: 3,600s)

Metering metrics reflect usage for billing purposes and follow different collection rules from non-metering metrics. Set Dimensions to query a specific bucket, or omit it to get account-level data. For collection rules and billing details, see Billable usage metrics.

MetricDescriptionUnit
MeteringStorageUtilizationStorage usageBytes
MeteringGetRequestNumber of GET requests
MeteringPutRequestNumber of PUT requests
MeteringInternetTXMetered outbound traffic over the InternetBytes
MeteringCdnTXMetered outbound traffic from Alibaba Cloud CDNBytes
MeteringSyncRXMetered inbound traffic generated by CRRBytes