Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
serverless-plugin-cloudwatch
Advanced tools
Generate CloudWatch Dashboard including widgets with configured metrics
Serverless plugin for setting up AWS CloudWatch dashboards with widgets (only from type 'metric') for configured metrics.
v0.1.0: it's still in development, not ready to use right now :)
Install via npm in the root of your Serverless service:
npm install serverless-plugin-cloudwatch
Add the plugin to the plugins
array of your Serverless service in serverless.yml
:
plugins:
- serverless-plugin-cloudwatch
There will be only one dashboard per deployment stage. A dashboard is a customizable home page in the CloudWatch console that you can use to monitor your AWS resources in a single view. That's why there will be only one dashboard per deployment.
Following AWS Services are currently supported:
(AWS S3, AWS ApiGateway and AWS DynamoDB follows soon)
The plugin can be configured by adding a property called dashboard
to the custom properties of the Serverless service.
This is the minimum required configuration:
dashboard:
lambda:
enabled: true
Default configuration It will be used, if you only include the minimum required configuration. The default configuration looks like this:
dashboard:
lambda:
widgets:
- name: 'Sum of Invocations'
metrics:
- name: 'Invocations'
stat: 'Sum'
- name: 'Sum of Errors',
metrics:
- name: 'Erorrs'
stat: 'Sum'
enabled: true
With the default configuration the following widgets will be added to the cloudwatch dashboard:
You can configure by your own:
name
) of the widgetname
) should be included in each widgetstat
) should be used for each metricTo gain maximum control over which functions to be included, you can disable lambda dashboards globally,
dashboard:
lambda:
enabled: false
and enable it only for specific functions, by setting the dashboard flag for those functions to true:
functions:
myFunction:
handler: some_handler
dashboard: true
This software is released under the MIT license. See the license file for more details.
FAQs
Generate CloudWatch Dashboard including widgets with configured metrics
The npm package serverless-plugin-cloudwatch receives a total of 0 weekly downloads. As such, serverless-plugin-cloudwatch popularity was classified as not popular.
We found that serverless-plugin-cloudwatch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.