Use CloudMonitor to view metrics and configure alerts for VOD domain names and playback quality

Updated at:

Use CloudMonitor to view monitoring metrics for your ApsaraVideo VOD accelerated domain names and audio/video applications, and to configure alert rules that send notifications when the monitored data does not meet expectations.

Overview

ApsaraVideo VOD is integrated with CloudMonitor, the monitoring service of Alibaba Cloud. You can use CloudMonitor to view monitoring information and configure alert rules.

ApsaraVideo VOD provides metrics in two dimensions, VOD accelerated domain name and audio/video application, which correspond to the ApsaraVideo VOD and ApsaraVideo VOD-Playback Quality dashboards in the CloudMonitor console. You can set alert rules to monitor the access status of your VOD accelerated domain names and the playback quality of your audio/video applications on the two dashboards. When the conditions of an alert rule are met, CloudMonitor automatically sends an alert notification.

  • The ApsaraVideo VOD dashboard shows the access status of your VOD accelerated domain names. Alert notifications help you promptly identify and diagnose access issues.

  • The ApsaraVideo VOD-Playback Quality dashboard shows the playback quality of each audio/video application. Alert notifications help you promptly detect playback quality exceptions and prevent the issues from continuously affecting user experience.

    The alerting and data monitoring features belong to CloudMonitor Basic. You can use CloudMonitor Basic for free without activation. Fees are incurred when your actual usage exceeds the free quota. For more information, see CloudMonitor Billing overview.

Monitoring metrics

Playback quality metrics for audio/video applications

CategoryMetricDimensionDescription
QoSInstant playback rate (%)ApplicationInstant playback rate = Number of playbacks with a first frame time of 1,000 ms or less × 100% / Actual playbacks.
QoSSlow startup rate (%)ApplicationSlow startup rate = Number of playbacks with a first frame time of 3,000 ms or more × 100% / Actual playbacks.
QoSAverage seek duration (ms)ApplicationAverage seek duration = Total time spent on loading when users drag the progress bar / Number of seek operations.
QoSPlayback failure rate (%)ApplicationPlayback failure rate = Number of playback failures / Play count × 100%.
QoSPlayback startup failure rate (%)ApplicationPlayback startup failure rate = Number of playbacks that did not start / Play count × 100%.
QoSErrors per 100 seconds (count)ApplicationErrors per 100 seconds = Number of errors / Total watch duration (seconds) × 100.
QoSDuration of stuttering per 100 seconds (seconds)ApplicationStuttering duration per 100 seconds = Total stuttering duration (ms) / Total watch duration (seconds) × 100.
QoSNumber of stuttering events per 100 seconds (count)ApplicationStuttering events per 100 seconds = Number of stuttering events / Total watch duration (seconds) × 100.
QoSFirst frame time (ms)ApplicationFirst frame time = AVG (Time when the first frame is displayed - Time when the start method is called).
QoEPlay count (count)ApplicationThe total number of valid video playbacks that users initiate on the client. After the prepare method is called, the first time the client calls the start method counts as one playback. Calling the start method again after a pause does not count as a new playback.
QoEActual playbacks (count)ApplicationThe number of playbacks in which the first frame is successfully rendered. Playbacks in which the start method is called but no first-frame rendering success callback is received are excluded.
QoECompleted playbacks (count)ApplicationCompleted playbacks = Total number of playbacks in which the last frame is successfully displayed (finish_cnt).
QoECompletion rate (%)ApplicationCompletion rate = Completed playbacks / Actual playbacks × 100%.
QoE5-second bounce rate (%)Application5-second bounce rate = Number of playbacks with a duration of less than 5 seconds / Actual playbacks × 100%.
QoEPlayback users (count)ApplicationThe deduplicated number of users who play videos by using the ApsaraVideo Player SDK (count(distinct(uuid))).
QoEPlayback duration per user (ms)ApplicationPlayback duration per user = Total actual playback duration of users / Number of actual playback users. Equivalent formula: Playback duration per user = sum(watch_duration) ÷ count(distinct case when watch_cnt > 0 then uuid end).
QoEPlaybacks per user (count)ApplicationPlaybacks per user = Actual playbacks / Playback users.
QoECompleted playbacks per user (count)ApplicationCompleted playbacks per user = Completed playbacks / Playback users.
QoEAverage playback duration (ms)ApplicationAverage playback duration = Total actual playback duration of users / Actual playbacks.
QoEAverage video duration (ms)ApplicationAverage video duration = AVG (play_video_duration). The average video length calculated based on the header information of video resources, which reflects the duration distribution of the played content.
QoEAverage startup bitrate (bps)ApplicationAverage startup bitrate = Average of the startup bitrates of all playbacks.
QoEAverage playback bitrate (bps)ApplicationAverage playback bitrate = Average of the video bitrates of all playbacks.

Metrics for VOD accelerated domain names

CategoryMetricDimensionDescription
Bandwidth and trafficEdge network bandwidth (bits/s)Domain nameThe access bandwidth generated by ApsaraVideo VOD CDN edge nodes.
Bandwidth and trafficBack-to-origin network bandwidth (bits/s)Domain nameThe access bandwidth generated by ApsaraVideo VOD CDN back-to-origin nodes.
Bandwidth and trafficDownstream traffic (bytes)Domain nameThe downstream traffic generated by ApsaraVideo VOD CDN points of presence.
RequestsTotal back-to-origin requests (count)Domain nameThe total number of requests generated by ApsaraVideo VOD CDN back-to-origin nodes.
RequestsRequests per second (count)Domain nameThe number of requests to access the ApsaraVideo VOD accelerated domain name per second.
Hit rateByte hit ratio (%)Domain nameThe percentage of bytes served from the ApsaraVideo VOD CDN cache in the total response bytes of all requests.
Status codeEdge 1XX status code percentage (%)Domain nameThe percentage of requests that receive a 1XX status code from ApsaraVideo VOD CDN edge nodes in the total number of requests.
Status codeEdge 2XX status code percentage (%)Domain nameThe percentage of requests that receive a 2XX status code from ApsaraVideo VOD CDN edge nodes in the total number of requests.
Status codeEdge 3XX status code percentage (%)Domain nameThe percentage of requests that receive a 3XX status code from ApsaraVideo VOD CDN edge nodes in the total number of requests.
Status codeEdge 4XX status code percentage (%)Domain nameThe percentage of requests that receive a 4XX status code from ApsaraVideo VOD CDN edge nodes in the total number of requests.
Status codeNumber of edge 499 status codes (count)Domain nameThe number of requests that receive a 499 status code from ApsaraVideo VOD CDN edge nodes.
Status codeEdge 499 status code percentage (%)Domain nameThe percentage of requests that receive a 499 status code from ApsaraVideo VOD CDN edge nodes in the total number of requests.
Status codeEdge 5XX status code percentage (%)Domain nameThe percentage of requests that receive a 5XX status code from ApsaraVideo VOD CDN edge nodes in the total number of requests.
Status codeBack-to-origin 1XX status code percentage (%)Domain nameThe percentage of requests that receive a 1XX status code from ApsaraVideo VOD CDN back-to-origin nodes in the total number of requests.
Status codeBack-to-origin 2XX status code percentage (%)Domain nameThe percentage of requests that receive a 2XX status code from ApsaraVideo VOD CDN back-to-origin nodes in the total number of requests.
Status codeBack-to-origin 3XX status code percentage (%)Domain nameThe percentage of requests that receive a 3XX status code from ApsaraVideo VOD CDN back-to-origin nodes in the total number of requests.
Status codeBack-to-origin 4XX status code percentage (%)Domain nameThe percentage of requests that receive a 4XX status code from ApsaraVideo VOD CDN back-to-origin nodes in the total number of requests.
Status codeBack-to-origin 499 status code percentage (%)Domain nameThe percentage of requests that receive a 499 status code from ApsaraVideo VOD CDN back-to-origin nodes in the total number of requests.
Status codeBack-to-origin 5XX status code percentage (%)Domain nameThe percentage of requests that receive a 5XX status code from ApsaraVideo VOD CDN back-to-origin nodes in the total number of requests.

Prerequisites

  • ApsaraVideo VOD is activated. For more information, see Activate ApsaraVideo VOD.

  • The RAM user or RAM role that you use has corresponding permissions to access ApsaraVideo VOD. We recommend that you use a RAM user or RAM role to perform operations to improve the security of your account and resources. For more information, see Create and grant permissions to a RAM user.

    • To view the metrics on the ApsaraVideo VOD dashboard, you must have configured a VOD accelerated domain name. For more information, see Add an accelerated domain name.

    • To view the metrics on the ApsaraVideo VOD-Playback Quality dashboard, make sure that the playback quality monitoring feature works properly and that you can view the related playback quality data. You must meet the following conditions:

      • Use the ApsaraVideo Player SDK, ensure that the license is valid, and enable log reporting (enabled by default). Native ApsaraVideo Player SDK V7.6.0 or later and Web ApsaraVideo Player SDK V2.33.0 or later are supported. For more information, see Obtain a license and Download ApsaraVideo Player SDK.

    • (Optional) As a best practice, pass through traceId when you create a player. You can then use TraceId Query to locate a specific user or device, analyze the playback behavior, and quickly identify issues such as playback exceptions. For information about how to pass through the trace ID, see Android QuickStart, iOS QuickStart, and Web player API reference.

    View monitoring data

    The following procedure uses viewing the monitoring data of an audio/video application as an example. The steps for viewing the monitoring data of a VOD accelerated domain name are similar, and you view that data on the ApsaraVideo VOD dashboard.

    Note

    You can view monitoring data for up to the last 30 consecutive days.

    1. Log on to the CloudMonitor consoleCloudMonitor console.

    2. In the left-side navigation pane, choose Cloud Resource Monitoring > Cloud Service Monitoring.

    3. On the Cloud Service Monitoring page, choose Media Services > ApsaraVideo VOD > ApsaraVideo VOD-Playback Quality to go to the application list page of ApsaraVideo VOD-Playback Quality.

    4. On the application list page, click the name of the target application, or click Monitoring Charts in the Actions column of the target application, to go to the monitoring charts page. You can run a filtered query on each metric by different periods, such as by hour or by day.

    Create an alert rule

    The following procedure uses creating an alert rule for an audio/video application as an example. The steps for creating an alert rule for a VOD accelerated domain name are similar, and you configure that rule on the ApsaraVideo VOD dashboard.

    1. Log on to the CloudMonitor consoleCloudMonitor console.

    2. In the left-side navigation pane, choose Cloud Resource Monitoring > Cloud Service Monitoring.

    3. On the Cloud Service Monitoring page, choose Media Services > ApsaraVideo VOD > ApsaraVideo VOD-Playback Quality to go to the monitoring page of ApsaraVideo VOD-Playback Quality.

    4. Click Create Alert Rule. You can create an alert rule in any of the following ways:

      • On the monitoring page of ApsaraVideo VOD-Playback Quality, click Create Alert Rule in the upper-left corner.

      • On the monitoring page of ApsaraVideo VOD-Playback Quality, click Alert Rules in the Actions column of the target application. On the Alert Rules page, click Create Alert Rule in the upper-left corner.

      • On the monitoring page of ApsaraVideo VOD-Playback Quality, click Monitoring Charts in the Actions column of the target application. On the monitoring page of the application, click Create Alert Rule in the upper-right corner.

    5. Set the parameters of the alert rule.

      ParameterDescription
      ProductThe name of the cloud service that can be managed by CloudMonitor. Select ApsaraVideo VOD-Playback Quality.
      Resource ScopeThe scope of resources to which the alert rule applies. Valid values: All Resources: The alert rule applies to all audio/video applications and takes effect for newly added resources. Application Group: The alert rule applies to the audio/video applications in a specified application group and takes effect for newly added resources. Instance: The alert rule applies to the specified audio/video applications. The resource scope type cannot be changed after the alert rule is created.
      Rule Description

      The body of the alert rule. The alert rule is triggered when the monitoring data meets the alert conditions. Set the rule description as follows: 1. Click Add Rule. 2. In the Add Rule Description panel, set the rule name, metric type, monitoring metrics, threshold, and alert level. 3. Click OK.

      Note

      For information about the metrics that audio/video applications support, see Monitoring metrics. For information about how to set complex alert conditions, see Expression for an alert rule.

      Mute ForThe interval at which a repeated alert notification is sent if the alert is not cleared. Valid values: 5 minutes, 15 minutes, 30 minutes, 60 minutes, 3 hours, 6 hours, 12 hours, and 24 hours. An alert notification is sent when a monitoring metric reaches the alert threshold. If the monitoring metric continues to exceed the alert threshold within the mute period, no repeated alert notification is sent during the mute period. If the monitoring metric has not returned to normal after the mute period, CloudMonitor sends another alert notification.
      Effective PeriodThe effective time of the alert rule. Alert notifications are sent only during the effective period. When the alert rule is not within the effective period, no alert notification is sent, but the alert history records are still displayed in the Alert History list.
      Alert Contact GroupThe group of contacts to which alert notifications are sent. Alert notifications of an application group are sent to the alert contacts in this alert contact group. An alert contact group is a group of alert contacts and can contain one or more alert contacts. For information about how to create alert contacts and alert contact groups, see Create an alert contact or an alert contact group.
      TagsThe tags of the alert rule. A tag consists of a tag key and a tag value. You can add up to six tags.
      Alert Callback

      A publicly accessible URL that is used to receive the alert information pushed by CloudMonitor through POST requests. Only the HTTP protocol is supported. For information about how to set an alert callback, see Use a webhook to send alert notifications. To test the connectivity of the alert callback address, perform the following steps. 1. Click Test right next to the callback address. In the Webhook Test panel, you can determine and troubleshoot the connectivity of the alert callback address based on the status code and the test result details returned by the webhook.

      Note

      You can also set the Callback Template Type and Language of the webhook, and then click Test again to obtain the corresponding test result details. 2. Click Close. Click Advanced Settings to set this parameter.

      Auto Scaling

      If you turn on Auto Scaling, the corresponding scaling rule is triggered when an alert occurs. You must set the Region, Scaling Group, and Scaling Rule for elastic scaling. For information about how to create a scaling group, see Create a scaling group. For information about how to create a scaling rule, see Create a scaling rule.

      Note

      Click Advanced Settings to set this parameter.

      Simple Log Service

      If you turn on Simple Log Service, the alert information is sent to a Logstore in Simple Log Service when an alert occurs. You must set the Region, ProjectName, and Logstore of Simple Log Service. For information about how to create a project and a Logstore, see Collect and analyze text logs from ECS instances.

      Note

      Click Advanced Settings to set this parameter.

      Simple Message Queue (formerly MNS) - Topic

      If you turn on Simple Message Queue (formerly MNS) - Topic, the alert information is sent to a topic of Simple Message Queue (formerly MNS) when an alert occurs. You must set the region and the topic of Simple Message Queue (formerly MNS). For information about how to create a topic, see Create a topic.

      Note

      Click Advanced Settings to set this parameter.

      Function Compute

      If you turn on Function Compute, the alert notifications are sent to Function Compute for format processing when an alert occurs. You must set the region, service, and function of Function Compute. For information about how to create a service and a function, see Create a function.

      Note

      Click Advanced Settings to set this parameter.

      No Data Handling Method

      The method for handling alerts when no monitoring data is available. Valid values: Do not process (default). Send no-data alert. Mark as Recovered.

      Note

      Click Advanced Settings to set this parameter.

    6. Click OK to complete the creation.

      After the alert rule is created, the contacts specified in the alert rule receive the related alert notifications when the monitoring data does not meet expectations.

    Manage alert rules

    You can view, modify, enable, disable, and delete the alert rules that you created for ApsaraVideo VOD in the CloudMonitor console.

    1. Log on to the CloudMonitor consoleCloudMonitor console.

    2. In the left-side navigation pane, choose Alerts > Alert Rules to view, modify, enable, disable, and delete the corresponding alert rules.

    References

    For more information about CloudMonitor, see What is CloudMonitor?.