aws-lambda-extensions
aws-embedded-metrics-golang
Our great sponsors
aws-lambda-extensions | aws-embedded-metrics-golang | |
---|---|---|
5 | 1 | |
423 | 53 | |
2.4% | - | |
5.0 | 0.0 | |
29 days ago | 9 months ago | |
Go | Go | |
MIT No Attribution | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
aws-lambda-extensions
-
Lambda Extension with Golang
This should look familiar to this AWS Repository. I'm still personally exploring more of how I can customize and instrument some of this code, but the extension is registered and ready for use by this function.
- Can I run gRPC between two binaries in a lambda function?
-
Building an AWS Lambda Telemetry API extension for direct logging to Grafana Loki
There are some extension examples github. I am using go-example-telemetry-api-extension as a starting point. You can see the code in my Lambda-Telemetry-API-Loki repository.
-
How do I write to a different log stream from lambda?
You can't send some of your lambda logs to one log group and some to another without directly invoking the sdk, which you probably don't want to do. Maybe someone has created some lambda layer to handle this, but not one that I know of. I see people have tried to get fluent bit to work in lambda with mixed results https://github.com/aws-samples/aws-lambda-extensions/pull/42.
-
Understanding the Lambda Logs API
For even more inspiration related to the Logs API, checkout the AWS-provided samples. Some examples include batching the logs and delivering them to S3 or a template to get you started.
aws-embedded-metrics-golang
-
How to monitor your system dependencies
CloudWatch Embedded Metric Format allows to automatically generate metrics from logs. As a developer you need to log the metrics as JSON to stdout and Cloud Watch takes care of publishing the metric on your behalf. You can use one of the AWS client libraries for NodeJS, Python or Java to build and log an embedded metric structure. Sadly, at the moment AWS has not published a client library for Golang which means you need to create the JSON object yourself following the schema described in the specification. It’s relatively straightforward and not surprisingly a few community maintained projects do exactly that, for example aws-embedded-metrics-golang.
What are some alternatives?
cloudfront-autoindex - AWS Lambda to work around index.html S3/CloudFront mess
cw - The best way to tail AWS CloudWatch Logs from your terminal
fx - A Function as a Service tool makes a function as a container-based service in seconds.
ssh - Easy SSH servers in Golang
AutoSpotting - Saves up to 90% of AWS EC2 costs by automating the use of spot instances on existing AutoScaling groups. Installs in minutes using CloudFormation or Terraform. Convenient to deploy at scale using StackSets. Uses tagging to avoid launch configuration changes. Automated spot termination handling. Reliable fallback to on-demand instances.
svgo - Go Language Library for SVG generation
lambda-extension-cache
planor - The Cloud Aviator: TUI client for cloud services (AWS, Vultr, Heroku, Render.com, Fleek, ...)
rattlesnakeos-stack - Build your own privacy and security focused Android OS in the cloud.
grequests - A Go "clone" of the great and famous Requests library
Lambda-Telemetry-API-Loki - Extension to write AWS Lambda logs directly to Grafana Loki
kanarya - Canary AWS Lambda deployments simplified.