Giter Club home page Giter Club logo

Comments (2)

powersj avatar powersj commented on August 30, 2024

If the outputs.cratedb buffer fills up to metric_batch_size, the oldest metrics are expected to be dropped. Regardless of this, InfluxDB should never stop writing

Unfortunately, this is not possible when using a service input like MQTT Consumer. Service input plugins use tracking metrics that ensure the delivery of metrics from the input all the way to the output and notify the original source once delivered.

Additionally, these types of inputs will only read up to max_undelivered_messages, which is 1000 by default. This is because without some sort of limit you could easily overwhelm telegraf and whatever outputs you are using by collecting and sending a huge number of messages all at once.

If your instance has read up to 1000 metrics, which is what your buffer reports, and the messages are unable to be delivered, the mqtt_consumer plugin will not continue to read any further messages until that changes.

One possible alternative is to have two separate mqtt plugins one for each output.

from telegraf.

cube3lab avatar cube3lab commented on August 30, 2024

Ok, so the problem is with the mqtt consumer. Makes sense. Using two inputs could be a valid workaround for me.
Thanks!

from telegraf.

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.