Coder Social home page Coder Social logo

collectd-influxdb-proxy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

collectd-influxdb-proxy's Issues

Proxy needs frequent restarts to continue pushing metrics to influxdb

I've found that when using the collectd-influxdb-proxy as described in the readme, I eventually stop seeing metrics show up in InfluxDB.

I'm collecting 4 JMX metrics from a single JVM on a 15 second interval with collectd's GenericJMX plugin. When watching the data via Grafana or InfluxDB's admin interface, after a minute or two I stop getting metrics. Bouncing the proxy resolves the issue. As a hacky workaround I have a cron job restarting the proxy every 60 seconds, and I'm able to retain my 15-second resolution this way.

Interestingly, the verbose output from the proxy still shows that it is pushing each individual metric to InfluxDB whenever collectd's write-http plugin flushes its buffer, but the metrics don't necessarily make it into Influx.

I believe I've confirmed that it is indeed the proxy that is the point of failure by experimenting with different restart intervals on the cron job. When it's set to restart every 5 minutes, I get full resolution metrics for anywhere from 1.5 to 3 minutes, then the metrics flatline until the next restart of the proxy. Shrinking this interval to 3 minutes yields more consistent metrics, but there are still gaps of up to 1.5 minutes in the metrics.

Setting it to a 1 minute restart interval via cron yields mostly consistent full-resolution metrics, but there are still occasional spots where there is a 30-second jump gap between values.

resolve dependencies

Need to add note to run npm install in readme, else the following happens:

# node proxy.js 

module.js:340
    throw err;
          ^
Error: Cannot find module 'optimist'

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.