Giter VIP home page Giter VIP logo

Comments (7)

repeatedly avatar repeatedly commented on August 15, 2024

Hmm... it means your record is {"time":"...","k1":"v1",...}?

from fluent-plugin-influxdb.

jonmchan avatar jonmchan commented on August 15, 2024

Yes, my record was that. I fixed it, but td-agent went into a state where it would no longer send any requests. I had to restart td-agent after that to get it to start working again.

from fluent-plugin-influxdb.

repeatedly avatar repeatedly commented on August 15, 2024

I just wrote a simple patch for this case.
Could you test a patch?

from fluent-plugin-influxdb.

jonmchan avatar jonmchan commented on August 15, 2024

@repeatedly I tested it and it works. You can merge the other PR.

I think it'd be nice though to handle the error states a little more intelligently and drop the messages that are permanent errors.

from fluent-plugin-influxdb.

repeatedly avatar repeatedly commented on August 15, 2024

I think it'd be nice though to handle the error states a little more intelligently and drop the messages that are permanent errors.

I agree but influxdb-ruby seems to raise InfluxDB::Error with error message from influx database.
Do you have a list of error messages?

from fluent-plugin-influxdb.

jonmchan avatar jonmchan commented on August 15, 2024

I do not have a complete list of error messages, but I think a good starting point would be the influxdb-ruby errors.

https://github.com/influxdb/influxdb-ruby/blob/daab9282427641cb222d0939c2f78882c0ec14d5/lib/influxdb/errors.rb

JSONParserError and AuthenticationError are fatal errors and the data should not be resent. The others we can flush out in further iterations of the plugin.

from fluent-plugin-influxdb.

repeatedly avatar repeatedly commented on August 15, 2024

JSONParserError

It doesn't appear in influxdb code.

AuthenticationError

Hmm... how about calling get_database_list like API to check user/password at start phase?
If failed, fluentd doesn't start.

from fluent-plugin-influxdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.