[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-03 (世界標準時間)。"],[],[],null,["# Monitor live streams\n\nThis page describes how to view metrics collected by Live Stream API as part of\nCloud Monitoring. You can find the list of Live Stream API metrics at [Google\nCloud metrics](/monitoring/api/metrics_gcp).\n\nView Cloud Monitoring metrics\n-----------------------------\n\nTo view the metrics for a monitored resource by using the\nMetrics Explorer, do the following:\n\n1. In the Google Cloud console, go to the\n *leaderboard* **Metrics explorer** page:\n\n [Go to **Metrics explorer**](https://console.cloud.google.com/monitoring/metrics-explorer)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Monitoring**.\n2. In the toolbar of the Google Cloud console, select your Google Cloud project. For [App Hub](/app-hub/docs/overview) configurations, select the App Hub host project or the app-enabled folder's management project.\n3. In the **Metric** element, expand the **Select a metric** menu, enter `Live Stream API Channel` in the filter bar, and then use the submenus to select a specific resource type and metric:\n 1. In the **Active resources** menu, select **Live Stream API Channel**.\n 2. To select a metric, use the **Active metric categories** and **Active metrics** menus.\n 3. Click **Apply**.\n4. Configure how the data is viewed. For example, you can plot the chart for a specific channel by entering `channel_id = my-channel` in the **Filters** field.\n\n For more information about configuring a chart, see\n [Select metrics when using Metrics Explorer.](/monitoring/charts/metrics-selector)\n\nConvert the input stream bitrate unit\n-------------------------------------\n\nYou can use the `channel/received_bytes_count` metric to monitor your input\nstream bitrate. By default, the unit of `channel/received_bytes_count` is bytes\nper second to be consistent with other Google Cloud metrics.\n\nFollow the steps below to change the unit to a different bitrate unit such as\n`mbps`:\n\n1. In the Metrics Explorer **Configuration** tab, set the **Resource Type**\n field to **Live Stream API Channel** and the **Metric** field to **Received\n bytes count**.\n\n2. Select the **MQL** tab.\n\n3. Attach a scale function to the end of the current query:\n\n ```\n fetch livestream.googleapis.com/Channel\n | metric 'livestream.googleapis.com/channel/received_bytes_count'\n | align rate(1m)\n | every 1m\n | scale(\"Mbit/s\")\n ```\n4. Click **RUN QUERY** to replot the chart with the `mbps` unit.\n\nFor more information about MQL, see [Using the Query Editor](/monitoring/mql/query-editor)."]]