RT,用 influxdb-ruby 这个 gem 往 influxdb 存数据,报
InfluxDB::Error: {"error":"unable to parse 'qianbao ': invalid field format"}
from /usr/local/rvm/gems/ruby-2.3.1/gems/influxdb-0.3.12/lib/influxdb/client/http.rb:85:in `resolve_error'
from /usr/local/rvm/gems/ruby-2.3.1/gems/influxdb-0.3.12/lib/influxdb/client/http.rb:35:in `block in post'
from /usr/local/rvm/gems/ruby-2.3.1/gems/influxdb-0.3.12/lib/influxdb/client/http.rb:53:in `connect_with_retry'
from /usr/local/rvm/gems/ruby-2.3.1/gems/influxdb-0.3.12/lib/influxdb/client/http.rb:26:in `post'
from /usr/local/rvm/gems/ruby-2.3.1/gems/influxdb-0.3.12/lib/influxdb/query/core.rb:71:in `write'
from /usr/local/rvm/gems/ruby-2.3.1/gems/influxdb-0.3.12/lib/influxdb/query/core.rb:57:in `write_points'
from /usr/local/rvm/gems/ruby-2.3.1/gems/influxdb-0.3.12/lib/influxdb/query/core.rb:63:in `write_point'
from (irb):49
from /usr/local/rvm/rubies/ruby-2.3.1/bin/irb:11:in `<main>'
代码是这样的
require 'influxdb'
influxdb = InfluxDB::Client.new
a = {"method"=>"GET", "path"=>"/api/lottery/awards", "format"=>"html", "controller"=>"Api::LotteryController", "action"=>"lottery_awards", "status"=>200, "duration"=>651.61, "view"=>2.16, "db"=>93.05}
influxdb.write_point("qianbao", a)
各种查过。。。。没找到有用的。。。。 请教各位大神了