{"modulePath":"github.com/wavefronthq/wavefront-lambda-go","version":"v0.9.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package wflambda\n\nPackage wflambda is a Go wrapper library for AWS Lambda so you can monitor everything from your Wavefront ([https://wavefront.com](https://wavefront.com)) dashboard. The package includes a set of standard metrics it can send to Wavefront and can be extended to send custom metrics using [https://github.com/rcrowley/go-metrics](https://github.com/rcrowley/go-metrics).\n\n### The reported standard metrics are {#hdr-The_reported_standard_metrics_are}\n\n| Metric Name                       |  Type         | Description                                                             | | --------------------------------- | ------------- | ----------------------------------------------------------------------- | | aws.lambda.wf.invocations.count   | Delta Counter | Count of number of lambda function invocations aggregated at the server.| | aws.lambda.wf.errors.count        | Delta Counter | Count of number of errors aggregated at the server.                     | | aws.lambda.wf.coldstarts.count    | Delta Counter | Count of number of cold starts aggregated at the server.                | | aws.lambda.wf.duration.value      | Gauge         | Execution time of the Lambda handler function in milliseconds.          |\n\nTo connect to Wavefront, you'll need to set the WAVEFRONT\\_URL and WAVEFRONT\\_API\\_TOKEN environment variables. To send the above standard metrics, you'll need to set the environment variable REPORT\\_STANDARD\\_METRICS to true.\n\n## Functions\n\n```go\nfunc Wrapper(lambdaHandler interface{}) interface{}\n```\nWrapper returns the Wavefront Lambda wrapper. The wrapper collects the AWS Lambda standard metrics and reports it directly to the specified Wavefront URL. To successfully execute the Lambda function and send metrics to Wavefront, the following environment variables should be set:\n\n\\* WAVEFRONT\\_URL: The URL of your Wavefront instance (like [https://myinstance.wavefront.com](https://myinstance.wavefront.com)). \\* WAVEFRONT\\_API\\_TOKEN: Your Wavefront API token (see the \\[docs]([https://docs.wavefront.com/wavefront\\_api.html](https://docs.wavefront.com/wavefront_api.html)) how to create an API token). \\* REPORT\\_STANDARD\\_METRICS: Report standard metrics or not (defaults to true).\n\n","path":"github.com/wavefronthq/wavefront-lambda-go","name":"wflambda","synopsis":"Package wflambda is a Go wrapper library for AWS Lambda so you can monitor everything from your Wavefront (https://wavefront.com) dashboard.","isRedistributable":true}
