serverless-metrics-plugin
v0.4.0
Published
Calls CloudWatch to get metric data for functions deployed with serverless framework. Defaults to list all functions for the last hour.
Downloads
4
Readme
serverless-metrics-plugin
Calls CloudWatch to get metric data for functions deployed with serverless framework. Defaults to list all functions for the last hour.
You can specify a function using the --function argument.
You can specify a different number of hours using the --hours argument.
Example:
sls metrics --function MY_HANDLER --hours 24
Installation
npm install serverless-metrics-plugin --save-dev
Edit serverless.yml
Include this in your serverless.yml file:
plugins:
- serverless-metrics-plugin