This topic describes how to query upstream stream ingest data and downstream playback data in ApsaraVideo Live.
You can log on to the ApsaraVideo Live console and query data on the Billing and Monitoring pages under Data Center.
The Usage feature outlines key metrics, including playback bandwidth and traffic, the number of ingest endpoints, transcoding length, and the number of screenshots. For more information, see Usage Query.
You can use Operational Analysis to query data such as traffic and bandwidth, origin traffic and bandwidth, unique visitors, and user distribution. For more information, see Operation Analysis.
Real-time Monitoring lets you monitor data such as stream ingest and bandwidth. For more information, see Real-time Monitoring.
You can use the following API operations to query the corresponding data:
Query the network bandwidth monitoring data for a domain name
Query the number of ingest endpoints for live recording and the usage of container format conversion
Query the number of snapshots for a live streaming domain name
Query the ingest network bandwidth monitoring data for an ingest domain
Query the ingest traffic monitoring data for an ingest domain
Query the usage data of a domain name in a specific billing region
Query the detailed audio and video frame rates and bitrates of a live stream over RTMP
Query the page view (PV) and unique visitor (UV) data for a live streaming domain name
How to view upstream ingest quality
Real-time monitoring of upstream stream ingest quality helps you identify issues such as stuttering and latency in live streams. This feature provides real-time data every second, including Video, Audio, Video Bitrate, Audio Bitrate, and Real-time Logs. You can use this data to check the status of video streams, determine the stability of the stream ingest, and minimize issues caused by video stuttering.
You can follow the steps below to check the stream ingest quality in the ApsaraVideo Live console. You can also determine the stream ingest quality from the real-time stream ingest bitrate and frame rate returned by the Query the detailed audio and video frame rates and bitrates of an RTMP live stream API operation.
Procedure
Log on to the ApsaraVideo Live console.
In the left navigation pane, choose .
On the Stream-based Data tab, enter the stream name (StreamName), select a time range, and click Search.
The maximum time range for a single query is 3 hours. You can query data within the last 7 days.
For more information about the metrics, see Real-time monitoring.
Real-time Logs
Real-time logs have low latency, at the second level. They help you quickly understand the details of live stream ingest and access.
Procedure
Log on to the ApsaraVideo Live console.
In the left navigation pane, select .
Select the domain name and time, and then click Search to search for the corresponding logs.
For more information about the fields in upstream ingest logs, see Log Management.
How to perform downstream streaming data analysis
You can analyze playback data based on metrics such as bandwidth, traffic, status codes, unique visitors, and user distribution.
Name | Description | Query method |
Real-time traffic and bandwidth | The real-time bandwidth and traffic of a streaming domain in a specific region, for a specific ISP, and within a specified time range. | Note You can query the real-time bandwidth and traffic of a streaming domain for a specific region, ISP, and time period in the ApsaraVideo Live console. You can also query this data by calling the Query Ingest Domain Stream Ingest Traffic Monitoring Data API operation.
|
Playback bandwidth and traffic | Query the traffic and bandwidth usage of a specified domain name. | Note You can follow these steps to query the traffic and bandwidth usage for a specific domain name in the ApsaraVideo Live console. You can also call the Query network bandwidth monitoring data for an ingest domain operation to retrieve this data.
|
HTTP status code | The status code returned for an HTTP request. | Note You can view HTTP status codes in the ApsaraVideo Live console or by calling the Query the real-time HTTP return code ratio for a live streaming domain API.
|
User distribution | The geographic distribution of users who watch the video. | Note Within a specified time period, you can use the ApsaraVideo Live console to view the geographic distribution of video users, the access rankings of each accelerated domain name, and the number of unique IP requests for the current domain name. You can also retrieve this data using the Query PV/UV data for live streaming domains API.
|
Domain name ranking | The access ranking of accelerated domain names. | |
Unique visitors (UV) | The number of unique IP addresses that send requests to the domain name within a specified time range. |