serverless-plugin-aws-alerts icon indicating copy to clipboard operation
serverless-plugin-aws-alerts copied to clipboard

Add support for external API Gateway in the dashboards

Open lucasvieirasilva opened this issue 2 years ago • 0 comments

This is a Feature Proposal

Description

Currently, this plugin uses the stage and service name to build the API gateway name.

Code reference: https://github.com/ACloudGuru/serverless-plugin-aws-alerts/blob/master/src/dashboards/widgets/api-gw/requests/numbers.js#L2

But will be nice to support API gateway created externally.

In the alarms configuration section the apiName could be an optional property, like this:

custom:
  alerts:
    dashboards: true
    dashboardConfig: 
      apiName: 'my-custom-api-gateway-name'

lucasvieirasilva avatar Mar 25 '22 21:03 lucasvieirasilva