在 Apigee 上建構及發布 API 後,您必須確保 API 可用且運作正常,才能維持服務不中斷。Apigee 的 API Monitoring 可讓您追蹤 API,確保 API 正常且正確運作。API Monitoring 可提供近乎即時的 API 流量和效能深入分析,協助您在發生問題時快速診斷及解決。
[[["容易理解","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-04 (世界標準時間)。"],[[["\u003cp\u003eThis page covers API Monitoring for both Apigee and Apigee hybrid, enabling users to track API performance and availability.\u003c/p\u003e\n"],["\u003cp\u003eAPI Monitoring provides near real-time insights into API traffic and performance, allowing users to diagnose and resolve issues promptly, create alerts, and reduce mean-time-to-diagnosis.\u003c/p\u003e\n"],["\u003cp\u003eAPI Monitoring data, including query parameters and user agent information, is retained for six weeks before being deleted in accordance with Google's Privacy Policy.\u003c/p\u003e\n"],["\u003cp\u003eAccessing API Monitoring is available through either the Apigee UI in Cloud console or the classic Apigee UI, providing options to view timelines, investigate issues, or examine recent data.\u003c/p\u003e\n"],["\u003cp\u003eTo use API Monitoring, users need the \u003ccode\u003eroles/apigee.readOnlyAdmin\u003c/code\u003e and \u003ccode\u003eroles/monitoring.viewer\u003c/code\u003e roles, and Apigee hybrid users must have metrics enabled in their hybrid configuration.\u003c/p\u003e\n"]]],[],null,["*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\n\n*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*\n\n\u003cbr /\u003e\n\nAfter you build and launch your APIs on Apigee, you need\nto ensure that they are available and performing as expected in order to\nmaintain uninterrupted service. Apigee's API Monitoring enables you to\ntrack your APIs to make sure they are up and running correctly.\nAPI Monitoring provides near real-time insights into API traffic and performance, to\nhelp you quickly diagnose and solve issues as they arise.\n\nAPI Monitoring enables you to:\n\n- Create alerts to notify you of changes in API traffic so you can take appropriate action before customers are affected.\n- Increase API availability and reduce the mean-time-to-diagnosis (MTTD) by quickly investigating issues with your APIs.\n- Leverage fault codes to speed diagnosis.\n- Isolate problem areas quickly to diagnose errors, performance, and latency issues and their source.\n\nAs an Apigee customer, you can also use\n[Cloud Monitoring](https://cloud.google.com/monitoring/docs)\ntools to support API Monitoring.\n| **About data retention** : API Monitoring logs capture query parameter and user agent data. Since this data may contain personally identifiable information (PII), it is retained for **6 weeks** , then deleted per the [Google Privacy Policy](https://www.google.com/policies/privacy). For more details, see [Data retention](https://cloud.google.com/monitoring/quotas#data_retention_policy).\n| **Apigee hybrid users** : Do not disable metrics in your hybrid configuration if you intend to view API Monitoring data. [Metrics](/apigee/docs/hybrid/latest/metrics-enable) must be enabled in your hybrid configuration for API Monitoring data to show up. Metrics is enabled for hybrid by default.\n\nAPI Monitoring roles\n\nTo access API Monitoring, you need to be assigned the following roles:\n\n- `roles/apigee.readOnlyAdmin`\n- `roles/monitoring.viewer`\n\nSee [Apigee roles](https://cloud.google.com/iam/docs/understanding-roles#apigee-roles) for more\ninformation about what roles are appropriate for using API Monitoring.\n\nAccessing API Monitoring\n\nYou can access API Monitoring through the Apigee UI by doing the following\nsteps:\n\n\u003cbr /\u003e\n\nApigee in Cloud console\n\n1. In the Google Cloud console, go to the **Proxy Development \\\u003e API monitoring** page.\n2. [Go to API monitoring](https://console.cloud.google.com/apigee/apimonitoring)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nClassic Apigee\n\n\u003cbr /\u003e\n\n1. Sign in to [Apigee UI](https://apigee.google.com).\n2. Select one of the following views:\n\n - **Analyze \\\u003e API Monitoring \\\u003e Timeline**\n - **Analyze \\\u003e API Monitoring \\\u003e Investigate**\n - **Analyze \\\u003e API Monitoring \\\u003e Recent**\n\nThis displays the main API Monitoring view. In the **View** menu, you can\nselect one of the following views:\n\n\u003cbr /\u003e\n\n- **Timeline**: Displays timelines of recent API traffic data.\n- **Investigate**: Displays tables of API traffic data, such as fault code by region.\n- **Recent**: Displays treemaps of data in which each proxy is represented by a rectangle, whose size is proportional to the amount of API traffic for the proxy, and whose color denotes the relative size of related metrics.\n\nThe following sections describe these views in detail:\n\n\u003c!-- --\u003e\n\n- [Timeline](/apigee/docs/api-monitoring/timeline)\n- [Investigate](/apigee/docs/api-monitoring/investigate)\n- [Recent](/apigee/docs/api-monitoring/recent)\n\n\u003cbr /\u003e"]]