bernd / statsd-influxdb-backend

A naive InfluxDB backend for StatsD
ISC License
172 stars 74 forks source link

influxdb http 400 with influxdb1.0.2 #37

Closed zh4af closed 8 years ago

zh4af commented 8 years ago

Hi, There is a http error code 400 in communicating between statsd and influxdb 1.0.2. All the statsd-influxdb-backend configue is below. { graphitePort: 2003 , graphiteHost: "127.0.0.1" , port: 8125 , backends: [ "./backends/graphite", "statsd-influxdb-backend" ] , influxdb: { host: '127.0.0.1', // InfluxDB host. (default 127.0.0.1) port: 8086, // InfluxDB port. version: 1.0, // InfluxDB version. (default 0.8) ssl: false, // InfluxDB is hosted over SSL. (default false) database: 'mydb', // InfluxDB database instance. (required) username: 'root', // InfluxDB database username. password: 'root', // InfluxDB database password. flush: { enable: true // Enable regular flush strategy. (default true) }, proxy: { enable: true, // Enable the proxy strategy. (default false) suffix: 'raw', // Metric name suffix. (default 'raw') flushInterval: 1000 // Flush interval for the internal buffer. // (default 1000) }, includeStatsdMetrics: true, includeInfluxdbMetrics: true } }

The error log from influxdb is: "POST /write?p=%5BREDACTED%5D&u=root HTTP/1.1" 400 33 "-" "-" 1a778b94-a67f-11e6-8858-000000000000 63

Is the version not matched or any other problems?

zh4af commented 8 years ago

unsurport the version 1.0.x, it's ok when reinstall the infuxdb 0.9.x