statscloud.io-plugin-aws-lambda

1.0.1 • Public • Published

statscloud.io-nodejs-plugin-aws-lambda

This plugins should be used to add statscloud.io moniting to AWS Lambda functions. Detailed documentation about client and how to use it you can find here.

Lambda plugin supports udp and websocket transport. Default, websocket transport is secure, but requires several round-trip times during lambda execution. UDP transport introduces no delay in lambda execution, but is not secure. Documentation about how to choose transport you can find here.

To use this plugin, just add it to plugins section in .statscloud.json file:

{
  ...
  "plugins": [
    "aws-lambda"
  ]
}

You can customize plugin settings as well:

{
  ...
  "plugins": [
    {
      "name": "aws-lambda",
      "settings": {
        "transport": "udp"  // transport to use to send metrics to statscloud servers. You can choose between "ws" and "udp". Default value is "ws"
      }
    }
  ]
}

Package Sidebar

Install

npm i statscloud.io-plugin-aws-lambda

Weekly Downloads

2

Version

1.0.1

License

SEE LICENSE IN LICENSE

Unpacked Size

4.56 kB

Total Files

9

Last publish

Collaborators

  • statscloud.io