API Monitoring 的目标是提供实时的 API 性能数据洞见,并帮助您快速诊断和修复问题,以确保 API 按预期正常运行。API Monitoring 会显示最新的 API 流量数据,并在出现问题时向您发送提醒,以便您可以快速排查问题。
以下是 API Monitoring 让您能够执行的一些任务示例:
维护 API 的可用性。
根据提醒,在使用方受到影响之前采取相应措施。
利用 Apigee 故障代码加快问题诊断。
快速找出问题区域,以诊断错误、性能和延迟时间问题及其来源。
Apigee 客户还可以使用 Cloud Monitoring 工具支持 API Monitoring。如果您想与其他监控系统集成,我们建议您默认使用 Cloud Monitoring API 来拉取指标。
Apigee Analytics
Apigee Analytics 的目标是帮助您了解 API 流量的长期趋势,以便确保您的 API 支持您的业务要求,或在必要时进行更改。如需研究这些趋势,您可以创建自定义报告以确定特定的 API 指标随时间的变化情况。
以下是您可以使用 Apigee Analytics 识别的一些趋势:
您的 API 流量随时间变化的趋势如何?
您的热门应用有哪些?
您的主要开发者有哪些?
什么时候 API 响应时间最快或最慢?
哪些地理区域的 API 流量最多?
API Monitoring 数据与 Analytics 显示的数据之间的差异
API Monitoring 和 Analytics 使用不同的流水线访问 API 数据。因此,您可能会发现 Analytics 信息中心显示的数据与 API Monitoring 相反。通常,Google Analytics 显示的数据比 API Monitoring 数据显示的数据更准确,但延迟时间可能略短(不到一小时)。但是,这些细微差异不会影响 API Monitoring 及时了解 API 的性能的能力。
数据保留
Apigee Analytics 的数据保留时间比 API Monitoring 更长,因此它更适合分析长期趋势。Analytics 和 API Monitoring 的数据保留期限如下:
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-12。"],[[["This content covers both API Monitoring and Apigee Analytics, explaining their distinct purposes and capabilities within the Apigee and Apigee hybrid platforms."],["API Monitoring focuses on providing real-time insights into API performance to quickly identify and resolve issues, ensuring API availability and enabling swift troubleshooting."],["Apigee Analytics helps understand long-term API traffic trends, supporting business needs and enabling adjustments based on metrics like top apps, developers, and response times."],["While both tools collect API data, Apigee Analytics is designed for in-depth, long-term trend analysis with longer data retention periods, whereas API Monitoring prioritizes immediate operational insights."],["API Monitoring data may show minor discrepancies and be more timely compared to Apigee Analytics, but this does not hinder its effectiveness in maintaining awareness of API performance."]]],[]]