*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 />

After you build and launch your APIs on Apigee, you need
to ensure that they are available and performing as expected in order to
maintain uninterrupted service. Apigee's API Monitoring enables you to
track your APIs to make sure they are up and running correctly.
API Monitoring provides near real-time insights into API traffic and performance, to
help you quickly diagnose and solve issues as they arise.

API Monitoring enables you to:

- Create alerts to notify you of changes in API traffic so you can take appropriate action before customers are affected.
- Increase API availability and reduce the mean-time-to-diagnosis (MTTD) by quickly investigating issues with your APIs.
- Leverage fault codes to speed diagnosis.
- Isolate problem areas quickly to diagnose errors, performance, and latency issues and their source.

As an Apigee customer, you can also use
[Cloud Monitoring](https://cloud.google.com/monitoring/docs)
tools to support API Monitoring.

> [!NOTE]
> **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).

> [!CAUTION]
> **Apigee hybrid users** : Do not disable metrics in your hybrid configuration if you intend to view API Monitoring data. [Metrics](https://docs.cloud.google.com/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.

## API Monitoring roles

To access API Monitoring, you need to be assigned the following roles:

- `roles/apigee.readOnlyAdmin`
- `roles/monitoring.viewer`

See [Apigee roles](https://cloud.google.com/iam/docs/roles-permissions/apigee) for more
information about what roles are appropriate for using API Monitoring.

## Accessing API Monitoring

You can access API Monitoring through the Apigee UI by doing the following
steps:

In the Google Cloud console, go to the **Apigee \> Proxy Development \> API monitoring** page.

[Go to API monitoring](https://console.cloud.google.com/apigee/apimonitoring)

This displays the main API Monitoring view. In the **View** menu, you can
select one of the following views:

<br />

- **Timeline**: Displays timelines of recent API traffic data.
- **Investigate**: Displays tables of API traffic data, such as fault code by region.
- **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.

The following sections describe these views in detail:

<!-- -->

- [Timeline](https://docs.cloud.google.com/apigee/docs/api-monitoring/timeline.md.txt)
- [Investigate](https://docs.cloud.google.com/apigee/docs/api-monitoring/investigate.md.txt)
- [Recent](https://docs.cloud.google.com/apigee/docs/api-monitoring/recent.md.txt)

<br />