Nachdem Sie Ihre APIs auf Apigee erstellt und gestartet haben, müssen Sie prüfen, ob sie verfügbar sind und wie vorgesehen funktionieren, um einen unterbrechungsfreien Dienst zu gewährleisten. Mit dem API-Monitoring von Apigee können Sie Ihre APIs verfolgen, um zu gewährleisten, dass sie ordnungsgemäß ausgeführt werden.
API-Monitoring bietet nahezu in Echtzeit Informationen zum API-Traffic und zur API-Leistung, die Ihnen helfen, Probleme unmittelbar zu erkennen und zu beheben.
Vorteile des API-Monitoring:
Sie können damit Benachrichtigungen erstellen, die Sie über Änderungen im API-Traffic informieren, damit Sie geeignete Maßnahmen ergreifen können, bevor Kunden betroffen sind.
Es erhöht die API-Verfügbarkeit und reduziert die mittlere Diagnosezeit (Mean Time To Diagnosis, MTTD) durch schnelle Prüfung von Problemen Ihrer APIs.
Sie bietet Fehlercodes, um die Diagnose zu beschleunigen.
Damit lassen sich Problembereiche schnell isolieren, um Fehler-, Leistungs- und Latenzprobleme sowie deren Quelle zu diagnostizieren.
Als Apigee-Kunde können Sie das API-Monitoring auch mit Cloud Monitoring-Tools unterstützen.
API-Monitoring-Rollen
Für den Zugriff auf das API-Monitoring benötigen Sie die folgenden Rollen:
roles/apigee.readOnlyAdmin
roles/monitoring.viewer
Weitere Informationen dazu, welche Rollen für die Verwendung von API-Monitoring geeignet sind, finden Sie unter Apigee-Rollen.
Auf API-Monitoring zugreifen
So greifen Sie über die Apigee-Benutzeroberfläche auf das API-Monitoring zu:
Apigee in der Cloud Console
Rufen Sie in der Google Cloud Console die Seite Proxy-Entwicklung > API-Monitoring auf.
Dadurch wird die API-Monitoring-Hauptansicht angezeigt. Im Menü Ansicht können Sie eine der folgenden Ansichten auswählen:
Zeitachse: Zeigt die Zeitachsen des letzten API-Traffics an.
Untersuchen: Zeigt Tabellen mit API-Traffic-Daten an, z. B. Fehlercode nach Region.
Aktuell: Zeigt die Strukturkarten von Daten an, in denen jeder Proxy durch ein Rechteck dargestellt wird, dessen Größe proportional zum Umfang des API-Traffics für den Proxy ist und dessen Farbe die relative Größe zugehöriger Messwerte angibt.
In den folgenden Abschnitten werden diese Ansichten im Detail erläutert:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\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"]]