GithubHelp home page GithubHelp logo

Comments (9)

alpern95 avatar alpern95 commented on August 19, 2024

Hello,
I have the lastest influxdb 0.9.1 and the lastest gem influxdb 0.1.9
and i have the same problem.

LOG in /var/log/sensu/server.log

{"timestamp":"2015-07-09T14:48:46.303223+0000","level":"info","message":"handler output","handler":{"type":"pipe","command":"/etc/sensu/handlers/influxdb-metrics.rb","name":"influxdb"},"output":["/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/influxdb-0.1.9/lib/influxdb/client.rb:384:in block in post': 404 page not found (InfluxDB::Error)\n","\tfrom /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/influxdb-0.1.9/lib/influxdb/client.rb:431:incall'\n","\tfrom /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/influxdb-0.1.9/lib/influxdb/client.rb:431:in connect_with_retry'\n","\tfrom /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/influxdb-0.1.9/lib/influxdb/client.rb:375:inpost'\n","\tfrom /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/influxdb-0.1.9/lib/influxdb/client.rb:306:in _write'\n","\tfrom /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/influxdb-0.1.9/lib/influxdb/client.rb:285:inwrite_points'\n","\tfrom /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/influxdb-0.1.9/lib/influxdb/client.rb:253:in write_point'\n","\tfrom /etc/sensu/handlers/influxdb-metrics.rb:33:inblock in handle'\n","\tfrom /etc/sensu/handlers/influxdb-metrics.rb:23:in each_line'\n","\tfrom /etc/sensu/handlers/influxdb-metrics.rb:23:inhandle'\n","\tfrom /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-plugin-1.1.0/lib/sensu-handler.rb:55:in `block in class:Handler'\n"]}

from influxdb-ruby.

LeonLee88 avatar LeonLee88 commented on August 19, 2024

I am annoied with this when I was trying to send sensu output to influxdb(0.8) with it. But the team seems will not do anything to fix it so far. Now I have to abandon using the influxdb-client and use curl to write data to my db and finally make it work and display data on grafana(2.0.0 beta).

from influxdb-ruby.

toddboom avatar toddboom commented on August 19, 2024

@LeonLee88 @alpern95 you should use master for InfluxDB v0.9.x - the v0.2.0 gem will be released later this weekend.

from influxdb-ruby.

williampratt avatar williampratt commented on August 19, 2024

One other tip, delete all of your previous gem versions just in case. I hit this before my pr due to an old version being used. Delete all versions of influxdb-ruby from your gemset and bundle install.

from influxdb-ruby.

alpern95 avatar alpern95 commented on August 19, 2024

Hello Todboom,
influxdb 0.9.1 or 0.9.2rc.
i have now the new gem version 0.2.0,
i use sensu with the handler influxdb with the command influxdb-metrics.rb.
I have now a reject from the influxdb api.
the nex api do not accept write without TAG.
I dont know how to add a tag on the output for my metrics.
perhaps i need to modify myself influxdb-metrics.rb?
Log sensu
(influxdb_1 | [http] 2015/07/22 17:28:36 172.17.1.89 - - [22/Jul/2015:17:28:36 +0000] POST /write?db=sensu&precision=s&u=sensu&p=pass HTTP/1.1 400 77 - Ruby 15c25a18-3097-11e5-853a-000000000000 3.144229ms)
( influxdb_1 | [http] 2015/07/22 17:27:10 10.0.163.173 - sensu [22/Jul/2015:17:27:10 +0000] POST /write?consistency=&db=sensu&precision=&rp= HTTP/1.1 204 0 - InfluxDBClient e2313ba8-3096-11e5-8514-000000000000 10.766309ms )
End Log

I have also a telegraf client who use the same base and works perfectly.

If you have an advice/idee for me Thank.

from influxdb-ruby.

gunnaraasen avatar gunnaraasen commented on August 19, 2024

@toddboom looks like v0.2.0 has been released. Is this issue fixed?

from influxdb-ruby.

nurettin avatar nurettin commented on August 19, 2024

@gunnaraasen I get 404 Connectivity Error with v0.2.1 and influxdb v0.9.0 on mac os x installed via home-brew.

from influxdb-ruby.

brodock avatar brodock commented on August 19, 2024

it's said on the README, that you should use v0.9.1 or greater.

from influxdb-ruby.

dmke avatar dmke commented on August 19, 2024

I'm going to close this for now.

Please let me know if the problem still exists in recent versions of the Rubygem.

from influxdb-ruby.

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.