*This page
applies to **Apigee** and **Apigee hybrid**.*


*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*
![](https://fonts.gstatic.com/s/i/googlematerialicons/help/v13/gm_grey-24dp/1x/gm_help_gm_grey_24dp.png)

<br />

This section compares API Monitoring with
[Apigee Analytics](https://docs.cloud.google.com/apigee/docs/api-platform/analytics/analytics-services-overview.md.txt).
While both API Monitoring and Analytics let
you collect and view API data, they have different objectives, as described
in the following sections:

- [API Monitoring](https://docs.cloud.google.com/apigee/docs/api-monitoring/compare.md.txt#api_monitoring)
- [Apigee Analytics](https://docs.cloud.google.com/apigee/docs/api-monitoring/compare.md.txt#apigee_analytics)

## API Monitoring

The goal of API Monitoring is to provide real-time insights into API
performance, and help you quickly diagnose and fix issues to you keep your APIs
working as intended. API Monitoring displays the latest API traffic data,
and sends you alerts when issues arise so you can troubleshoot them quickly.

Here are a few examples of the tasks API Monitoring enables you to perform:

- Maintain the availability of your APIs.
- Take appropriate actions based on alerts before consumers are affected.
- Leverage Apigee fault codes to speed diagnosis of issues.
- Isolate problem areas quickly to diagnose errors, performance, and latency issues, and their sources.

Apigee customers can also use
[Cloud Monitoring](https://cloud.google.com/monitoring/docs)
tools to support API Monitoring. If you wish to integrate with other monitoring systems, we recommend that you use the Cloud Monitoring API by default to pull metrics.

## Apigee analytics

The goal of Apigee Analytics is to help you understand the long-term
trends of your API traffic, so that you can make sure your APIs are supporting
your business requirements, or make changes if necessary. To study these trends,
you can create
[custom reports](https://docs.cloud.google.com/apigee/docs/api-platform/analytics/create-custom-reports.md.txt)
to determine how specific
[API metrics](https://docs.cloud.google.com/apigee/docs/api-platform/analytics/analytics-reference.md.txt#metrics)
are changing over time.

Here are a few of the trends that you can identify using Apigee Analytics:

- How is your API traffic is trending over time?
- What are your top apps?
- Who are your top developers?
- When is API response time fastest or slowest?
- In what geographical regions do you see the most API traffic?

## Differences between data displayed by API Monitoring data and Analytics

API Monitoring and Analytics use different pipelines to access API data. As a result,
you may see some discrepancies between data displayed by Analytics dashboards
as opposed to API Monitoring. In general, data displayed by
Analytics is more accurate, but may be slightly more delayed (by less than an
hour),
than data displayed by API Monitoring data. However, these minor differences
don't affect API Monitoring's ability to keep you informed about your API's performance.

### Data retention

Apigee Analytics has longer data retention than API Monitoring, making it more
suitable for analysis of long-term trends.
The data retention periods for Analytics and API Monitoring are as follows:

- API Analytics: 14 months
- API Monitoring: 6 weeks