# API Monitoring

### Video

{% embed url="<https://www.youtube.com/watch?v=D_fB8orGNsU>" %}

Astera lets users monitor live metrics for all deployed APIs using a Visualization Dashboard.

Select the *Plots Explorer* view in the Server Browser.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FYoViHvn3CgHjGMTRFzTA%2F13-Plots-Explorer.PNG?alt=media&#x26;token=46bfb42c-e49e-43d9-920f-7618bf90c504" alt=""><figcaption></figcaption></figure>

This will open a new view.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Ff4bLUpiHpNG79sDtaBch%2F02-Monitoring-Dashboard.PNG?alt=media\&token=9bcd98ee-4cfd-45e6-ac59-82e53faade34)

Right-click on the option present underneath the *Dashboard* node and select *Open Dashboard* from the context menu.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FU1SAfp0E20iLsOPRrrOH%2F03-Open-Dashboard.PNG?alt=media\&token=b247a132-5380-4283-8d0e-a9bf481e79aa)

Selecting this will open the dashboard window.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FK5DLPOXTulXrpTBtv2P5%2F05.png?alt=media\&token=9815b393-b65b-4021-b440-db4f39da44f8)

The dashboard shows various performance metrics and graphs which can be used to monitor the deployed APIs. These include,

*Total number of requests*

*Requests per second* - Measures the throughput of the API server, gauging the number of requests the server can handle in a time unit of a second.

*Average response duration* - This is a critical KPI that signifies the average time taken for an API to respond.

*Most Recent Logs Record* - Lists the 10 most recent requests catered along with detailed information about the server and client.

*Requests by Response Status* - This shows the percentage of each of the different responses for the deployed APIs.

*Requests by Timespan* - A bar graph that highlights the traffic received as per the number of requests received with time.

*Average Response Duration by Timespan* - A line graph showing the average response durations with time.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FLZfRqlxyVgxYVZXdEfiV%2F08.png?alt=media\&token=58138d39-7ecc-4893-9e69-d6fade209834)

Using the Data Range filter, all these metrics and graphs can also be filtered by a data view.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FQXlidVpuBLZz4VCMTy1R%2F06.png?alt=media\&token=30c2c53f-404e-4ce8-8692-909edccc96a6)

{% hint style="info" %}
**Note:** The source table for the dashboard can be configured to purge.
{% endhint %}

From the Server Explorer, right-click on the cluster node and open *Cluster Settings.* Here, you can set the *Purge REST Request Info After* value to enable purging the source table.

A value of 0 signifies that the table would never be purged.

![07](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FbB8R5IGFABvwVhSh7OR9%2F07.png?alt=media\&token=dd38126e-7e41-473b-9f34-2bc666077ee6)

This concludes API Monitoring in Astera.
