-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Cloudwatch Embedded Metric Format Logs #27
Comments
@talawahtech This is something we're thinking about! Right now, there is a very simple solution available. Have your app produce logs in the format (either by constructing them yourself or using one of the CloudWatch libraries). This plugin then just needs to add a header in its http requests to note that the logs are formatted as EMF. I expect we'll get to this fairly soon- feel free to open a PR for it yourself though. Long term, having a way to take incoming data (ex built-in cpu plugin or custom app metrics) and convert it to EMF would be ideal. However, that requires that the the input data is in some recognizable format (which we can then convert). This is something I've been thinking about recently- how can Fluent Bit better process metrics in general when there is no single common metrics format? One idea is to just accept the lack of a common format, and add filters to fluent bit which can convert from one format to another. But that'll likely be time consuming to implement. Curious if you have thoughts this specific problem or the more general problem. |
Great to hear. I think support for the built-in metrics plugins like cpu/mem/netif/disk would be a great start. There is also an in_statsd plugin under development to support receiving metrics for statsd compatible sources, that could potentially be a next step. I think it may also be useful to keep an eye on the upcoming OpenTelemetry Metrics API. The format they use seems like it will be more complex, but if fluent-bit ever gets an in_otmetrics plugin then that might also be a potentially area to support automatic conversion into EMF. |
Is there a timeline when a new release will be published with this implementation? |
@cwendt94 Hopefully in the next 2 weeks. We need to get the integration tests fixed before we can put this out. |
@PettitWesley Sounds good, thank you for the quick response! |
Cloudwatch now supports automatically generating metrics from logs sent in a custom format.
It would be great if this plugin provided support for sending logs to CloudWatch in the expected format.
Would love to see support for built-in fluent-bit plugins (e.g. in_cpu) as well as well as for logs coming from an application with application specific metrics.
The text was updated successfully, but these errors were encountered: