Skip to content
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

Migrate kubernetes_sumologic filter plugin #167

Merged
merged 3 commits into from
Aug 30, 2019

Conversation

samjsong
Copy link
Contributor

Description

This moves the kubernetes_sumologic filter plugin from the old repo to this repo, and builds locally rather than pulling the gem.

We also duplicate the host metadata and attach as a new field node since that makes more sense in the kubernetes context.

image

Testing performed
  • ci/build.sh
  • Redeploy fluentd and fluentd-events pods
  • Confirm events, logs, and metrics are coming in

Copy link
Contributor

@lei-sumo lei-sumo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just copy/paste from the other repo? Good to go given you tested locally. Also did you add an unit test for the null field value?

@samjsong
Copy link
Contributor Author

It's copy & paste, except a few minor changes. To remain consistent with the other plugins in our repo, I changed fluent-plugin-kubernetes_sumologic to fluent-plugin-kubernetes-sumologic, plus a few other very small changes for consistency (none that affect behaviour of the plugin).

Good catch on the null field value change. That's currently still in the enhance_k8s_metadata plugin, I'll move that over.

Copy link
Contributor

@frankreno frankreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@samjsong samjsong merged commit 0cd2c66 into master Aug 30, 2019
@samjsong samjsong deleted the ssong-migrate-sumo-filter-plugin branch August 30, 2019 21:08
psaia pushed a commit to psaia/sumologic-kubernetes-collection that referenced this pull request May 25, 2021
* Update Care EKS collector

* Add a space, delete duplicate sourceCategory

* nvm, we don't want spaces

* Set sources as local variable to clean up filter_predicate

* tf fmt

* Let's try this again

* one more time

Co-authored-by: Mel Cone <7332210+melmaliacone@users.noreply.github.com>
Co-authored-by: Mel Cone <mel.cone@nytimes.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants