- 11 Jan 2023
- 3 Minutes to read
- Print
- DarkLight
- PDF
Amazon API Gateway (Device Type)
- Updated on 11 Jan 2023
- 3 Minutes to read
- Print
- DarkLight
- PDF
Description
Amazon API Gateway is an AWS service for creating, publishing, maintaining, monitoring, and securing REST, HTTP, and WebSocket APIs at any scale.
The Amazon API Gateway device type allows you to monitor a variety of statistics from an Amazon API Gateway.
Device License Value: 0.1 (See Device Licenses for more information.)
Collected Statistics
Netreo collects and stores the following statistics for the Amazon API Gateway device type.
See Data Retention for information on how long this data is stored in Netreo.
Statistic | Description |
---|---|
4XXError | The number of client-side errors captured in a given period. The Unit: Count |
5XXError | The number of server-side errors captured in a given period. The Unit: Count |
CacheHitCount | The number of requests served from the API cache in a given period. The Unit: Count |
CacheMissCount | The number of requests served from the backend in a given period, when API caching is enabled. The Unit: Count |
Count | The total number API requests in a given period. The Unit: Count |
IntegrationLatency | The time between when API Gateway relays a request to the backend and when it receives a response from the backend. Unit: Millisecond |
Latency | The time between when API Gateway receives a request from a client and when it returns a response to the client. The latency includes the integration latency and other API Gateway overhead. Unit: Millisecond |
See Amazon's documentation for more information about these statistics: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-metrics-and-dimensions.html
Requirements
Netreo Configuration
In order for Netreo to retrieve statistics for an Amazon API Gateway device type, you must add the appropriate credentials for your Amazon account.
- Log in to Netreo as a user with the SuperAdmin access level.
- Go to the main menu and select Administration > Modules > Cloud Monitoring to open the Cloud Monitoring Administration page.
- In the "Amazon Web Services" section select Add AWS.
- Enter the account information provided by Amazon for the account that contains the Amazon API Gateway that you wish to monitor.
- Select Save.
- Repeat for each Amazon account you wish to add.
- Move on to External Configuration below.
External Configuration
You must configure your AWS account to send statistics for each resource you wish to monitor.
For HTTP APIs
- Log in to your AWS account.
- Navigate to the AWS Management Console and go to API Gateway.
- In the API list, select the name of the HTTP API for which you wish to enable metrics.
- Select the metric on the left side and select a stage.
- Enable the Detailed Route Metrics option.
- Deploy the API.
For RESTful APIs
- Log in to your AWS account.
- Navigate to the AWS Management Console and go to API Gateway.
- In the API list, select the name of the RESTful API for which you wish to enable metrics.
- On the left select a stage.
- Select the Logs/Tracing tab.
- Select the Enable Detailed CloudWatch Metrics checkbox.
- Save the changes.