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

New Logz.io output #5736

Closed
wants to merge 132 commits into from
Closed

New Logz.io output #5736

wants to merge 132 commits into from

Conversation

idohalevi
Copy link
Contributor

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@idohalevi
Copy link
Contributor Author

@glinton
Any idea why AppVeyor build failed?

@glinton
Copy link
Contributor

glinton commented Apr 18, 2019

Any idea why AppVeyor build failed?

It's tempermental, don't worry about it.

@idohalevi
Copy link
Contributor Author

Any idea why AppVeyor build failed?

It's tempermental, don't worry about it.

Happy to hear that. Anything else I forgot before it can be reviewed?

@idohalevi
Copy link
Contributor Author

@glinton Hi, do you know when someone can take a look at this PR?

@Anaisdg
Copy link
Contributor

Anaisdg commented May 1, 2019

@danielnelson

@danielnelson
Copy link
Contributor

Thanks for the pull request @idohalevi, we will try to take a look as soon as we can, however we have quite the backlog right now so it may be some time yet.

I notice this plugin pulls in a few new dependencies, some of them seem quite large, in particular leveldb. The logzio-go library also replicates a fair bit of Telegraf functionality, buffering, retries and even stores the buffer to disk. It may make more sense to not use this library and instead write a new client for the logzio HTTP API.

@idohalevi
Copy link
Contributor Author

@danielnelson
Great feedback. Can you refer me to the retry/buffering code so I can take a look (couldn't find it)?
I'll push again without the logzio-go library

Thank you

@danielnelson
Copy link
Contributor

I only flipped through the code briefly, it is possible I am misunderstanding it, but most of what concerned me was in https://github.com/logzio/logzio-go/blob/master/logziosender.go

Here is the buffering, instead of sending it adds it to another queue: https://github.com/logzio/logzio-go/blob/master/logziosender.go#L193

Retries happen after the dequeue: https://github.com/logzio/logzio-go/blob/master/logziosender.go#L266

@idohalevi
Copy link
Contributor Author

@danielnelson
I was unclear. I was referring to the telegraf code section (not logz.io) where it handles retries and disk buffering.

@danielnelson
Copy link
Contributor

It is in the agent and internal/models packages.

@idohalevi
Copy link
Contributor Author

@danielnelson
I removed the logzio-go library and added tests

Copy link
Contributor

@glinton glinton left a comment

Choose a reason for hiding this comment

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

Thanks

plugins/outputs/logzio/README.md Outdated Show resolved Hide resolved
plugins/outputs/logzio/logzio.go Show resolved Hide resolved
plugins/outputs/logzio/logzio.go Outdated Show resolved Hide resolved
plugins/outputs/logzio/logzio.go Outdated Show resolved Hide resolved
plugins/outputs/logzio/logzio.go Outdated Show resolved Hide resolved
plugins/outputs/logzio/logzio.go Outdated Show resolved Hide resolved
@idohalevi
Copy link
Contributor Author

@p-zak sorry for the extra commits, it's been a while since I wrote in go. Is it ok now?

@idohalevi idohalevi removed the request for review from danielnelson September 23, 2020 08:26
@p-zak
Copy link
Collaborator

p-zak commented Sep 23, 2020

@idohalevi now it is hard to review because of a lot of files has been changed after your rebase

image

@idohalevi
Copy link
Contributor Author

idohalevi commented Sep 23, 2020

@idohalevi now it is hard to review because of a lot of files has been changed after your rebase

image

@p-zak Not sure how can I change it. Any suggestions? Should we close this one and create a new one with the recent commit only?

[![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://www.influxdata.com/slack)
# Logz.io Output Plugin

This plugin sends metrics to Logz.io over HTTPs.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that you do not want to change main README.md file. Something went wrong here...

@p-zak
Copy link
Collaborator

p-zak commented Sep 23, 2020

@idohalevi now it is hard to review because of a lot of files has been changed after your rebase
image

@p-zak Not sure how can I change it. Any suggestions? Should we close this one and create a new one with the recent commit only?

It seems that sync between your fork and this Telegraf repo has not gone smoothly... I do not know to help with that... @ssoroka do you have any advice?

Copy link
Contributor

@ssoroka ssoroka left a comment

Choose a reason for hiding this comment

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

This branch is badly mangled with changes from master and other branches. Could you start a fresh branch off of master and apply only the changes you want to keep?

If you're trying to make the fork off of a local master, you need to update it first. make sure the Telegraf repo is added as a "remote" repo eg git remote add upstream [email protected]:influxdata/telegraf.git, then something like..

git checkout master
git pull --ff-only upstream master

@ssoroka ssoroka modified the milestones: 1.16.0, Planned Sep 29, 2020
@idohalevi
Copy link
Contributor Author

@ssoroka @p-zak closing this PR for a cleaner one #8202

@idohalevi idohalevi closed this Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.