fluent-plugin-append_kubernetes_annotations_to_tag
A Fluent plugin to add kubernetes container annotations to the log tag
Prerequisites
This plugin is intended for use with the kuberenetes_metadata_filter plugin. You will need to filter with kubernetes_metadata_filter
so that your log records have the kubernetes
attribute loaded with the required data.
TODO
- [ ] Open source this gem
- [ ] Stop relying on a Redbubble-owned Docker image for the build
- [ ] Publish to Rubygems.org
- [ ] Make repo public
Usage
In your Gemfile:
gem 'fluent-plugin-append-kubernetes-annotations-to-tag'
In your Fluent config:
<filter **>
@type kubernetes_metadata_filter # See 'Prerequisites' above
...
</filter>
<filter **>
@type append_kubernetes_annotations_to_tag
annotations ['log_destination']
</filter>
Contributing
If you would like to contribute a fix or feature, here's what you should do:
- Raise an issue so we can discuss your change, and be sure you're not wasting your time
- Fork this repo (optional if you are a Redbubble engineer)
- Make your changes
- Submit a pull request
Maintainers
Copyright (c) Redbubble 2017. All rights reserved.