Serverless plugin to generate AWS CloudWatch dashboard for deployed Lambdas and API Gateway.
Requirements:
- Serverless v1.12.x or higher
- AWS provider
Install via npm in the root of your Serverless service:
npm install --save-dev serverless-dashboardThen inside your project's serverless.yml file add following entry to the plugins section: serverless-dashboard. If there is no plugin section you will need to add it to the file.
It should look something like this:
plugins:
- serverless-dashboardThe plugin can be configured by adding a property called serverlessDashboard to the custom properties of the Serverless
service. Following widgets are currently supported:
- Lambda Widget
- API Gateway Widget
Lambda widgets can be globally deactivated for all functions by adding an enabled flag to the configuration and setting it to false. By default they are enabled.
serverlessDashboard:
lambda:
enabled: falseOne widget is created for API Gateway resource, even if there are many Lambdas triggered by HTTP events. This widget can be globally deactivated by adding an enabled flag to the configuration and setting it to false. By default they are enabled for applications which have HTTP triggered Lambdas.
serverlessDashboard:
apiGateway:
enabled: false--dashboardLambda Set to true or false, overrides enabled flag in serverless.yml
--dashboardApiGateway Set to true or false, overrides enabled flag in serverless.yml
Options passed on the command line override YAML options.
Once configured the plugin will run each time you deploy your serverless app and update CloudWatch dashboard to the current structure of the app.
In your project root run: serverless dashboard create or serverless dashboard remove to create or remove the CloudWatch dashboard. Optionally in the CLI you can add flags(stage,region, etc.)
On deleting the stack from the command line, the plugin will delete the dashboard.

Listed below are AWS permissions needed for a sucessful deploy with serverless-dashboard-plugin
cloudwatch:PutDashboardto be able to create or modify dashboardscloudwatch:DeleteDashboardsto be able to delete dashboardsapigateway:GETto be able to check for available APIs
To view the dashboard afterwards following permissions are required
cloudwatch:GetDashboardcloudwatch:ListDashboards
Reaching these limits is improbable.
Up to 100 metrics per dashboard widget. Up to 500 metrics per dashboard, across all widgets.
These quotas include all metrics retrieved for use in metric math functions, even if those metrics are not displayed on the graph.
These quotas cannot be changed.
See the full list of CloudWatch Service Quotas
See the full list of Amazon CloudWatch pricing

