shawn-sterling / graphios

A program to send nagios perf data to graphite (carbon) / statsd / librato / influxdb
288 stars 100 forks source link

Graphios not able to send metrics data with InfluxDB version 0.12 #114

Closed itzmesanjib closed 8 years ago

itzmesanjib commented 8 years ago

Graphios is not able to send metrics data with the latest version of the influxDB 0.12. This is the error i get: Build URL: http://10.233.18.8:8086/write?u=influxdb&p=influxdb Failed to send metrics to InfluxDB. Status code: 400: {"error":"database is required"} Looks like the something was changed on the influxDB with the latest release which now makes a compulsion for the database to be passed as well with the HTTP build url. I did make that change but it again failed complaining that it wasn't able to parse the JSON request.

mpetersen42 commented 8 years ago

I believe the issue is probably that influx completely deprecated the JSON write protocol used by graphios.

https://docs.influxdata.com/influxdb/v0.12/write_protocols/json/

itzmesanjib commented 8 years ago

So does that mean that we would not be able to use the graphios script with recent versions of InfluxDB? I did make a workaround though using the influxDB version 0.11.1. To enable the JSON write protocol , make the following change in the influxdb config file :json-write-enabled = true and restart the services

miedzwiedz commented 8 years ago

patch.txt Now works with influxdb-0.12