ACloudGuru / serverless-plugin-aws-alerts

A Serverless Framework plugin that creates CloudWatch alarms for functions.
MIT License
531 stars 151 forks source link

Allow customization of API name for dashboards #81

Open kamzil opened 6 years ago

kamzil commented 6 years ago

This is a Feature Proposal

Description

Currently API name is hard-coded in each file under src/dashboards/widgets/api-gw/. We are using a different naming convention for our API Gateway APIs, and this breaks the dashboards for our alarms. Would it be possible to provide this as a config parameter under the dashboards key?

Additional Data

ecdavis commented 3 years ago

Documentation for serverless.yml includes the following:

shouldStartNameWithService: false # Use `${service}-${stage}` naming for API Gateway. Will be `true` by default in next major version.

The dashboards hardcode the API Gateway name like const apiName = `${config.stage}-${config.service}`;. Would be great for this plugin to at least support shouldStartNameWithService: true.