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 #215

Open lucasvieirasilva opened this issue 2 years ago • 0 comments

What did you implement:

Closes #215

This PR adds support for external API Gateway in the dashboards, currently, this plugin uses the stage and service name to build the API gateway name.

When you have an external API Gateway the dashboard widgets for API metrics shows always empty if the API Gateway name is different.

How did you implement it:

To solve this problem I added a new config property named dashboardConfig as a group and a property named apiName and if the value is present use the custom name.

config example:

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

How can we verify it:

I published a version in my personal npm organization with these changes

https://www.npmjs.com/package/@slslv/serverless-plugin-aws-alerts

lucasvieirasilva avatar Mar 25 '22 21:03 lucasvieirasilva