Comments (9)
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:in
call'\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:in
post'\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:in
write_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:in
block in handle'\n","\tfrom /etc/sensu/handlers/influxdb-metrics.rb:23:in each_line'\n","\tfrom /etc/sensu/handlers/influxdb-metrics.rb:23:in
handle'\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.
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.
@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.
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.
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.
@toddboom looks like v0.2.0
has been released. Is this issue fixed?
from influxdb-ruby.
@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.
it's said on the README, that you should use v0.9.1 or greater.
from influxdb-ruby.
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)
- Example from README wrong about time-precision? HOT 8
- missing delete_measurement method HOT 3
- create or alter retention policy function not working for database containing hyphen '-' in database name HOT 4
- Travis/Ruby 2.2: Limit Rubygems version while updating
- Issue when writing a tag value ending in a back slash HOT 4
- Inconsistent number of points returned for each grouping HOT 2
- Tags data saved as values HOT 2
- NET::HTTP NoMethodError Exception: undefined method `include?' for nil:NilClass
- Flux queries HOT 1
- persistent connection HOT 1
- Deprecated use of 'DROP DATABASE foo' in a read only context, please use a POST request instead HOT 1
- create_database explodes HOT 2
- InfluxDB Beta is changing the default port from 9999 to 8086 in the next release
- Support Ruby 3.0
- query builder: "warning: too many arguments for format string"
- Support for gzip post requests
- "/" character in query gives error HOT 1
- InfluxDB::Client is never garbage collected HOT 5
- Identify repo owner and move to InfluxCommunity org HOT 4
- why not using symbols in query results HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from influxdb-ruby.