bernd / statsd-influxdb-backend

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

Getting [influxdb] HTTP Error: 404 - with influxdb 0.12 #34

Closed codervarun closed 8 years ago

codervarun commented 8 years ago

I am using influxdb 0.12 version and using below setting { influxdb: { host: '127.0.0.1', // InfluxDB host (default 127.0.0.1) port: 8086, // InfluxDB port (default 8086) version : 0.12, database: 'demo', // InfluxDB db instance (required) //username: 'root', // InfluxDB db username (required) // password: 'root', // InfluxDB db password (required) flush: { enable: true // enable regular flush strategy (default true) }, proxy: { enable: false, // enable the proxy strategy (default false) suffix: 'raw', // metric name suffix (default 'raw') flushInterval: 1000 } }, port: 8125, // statsD port backends: ['./backends/console', 'statsd-influxdb-backend'], debug: true //legacyNamespace: false }

and still getting [influxdb] HTTP Error: 404

What could be problem here ?

Thanks Varun

Azulinho commented 8 years ago

same issue here

zhiwzhao commented 8 years ago

i have upgrade it to support influxdb 0.11 &0.12. so far work fine. the root cause you get error is that currently the backend is use json protocal, i change to line protocal. at the same time, the RP attribute is added in config. code will be committed later.

codervarun commented 8 years ago

@zhiwzhao : Cool , when are you going to checkin this patch to this repository . Eagerly waiting for it :)

zhiwzhao commented 8 years ago

@codervarun ,i am already commit to the github. you can have a try. https://github.com/bernd/statsd-influxdb-backend/pull/35/commits/dee837d9c8780bfe7572061009c6b9ebc8a214d5

predrag-rakic commented 8 years ago

@zhiwzhao I'm having the same issue. Can't pull your fix?

zhiwzhao commented 8 years ago

@predrag-rakic you can download from https://github.com/zhiwzhao/statsd-influxdb-backend

codervarun commented 8 years ago

@zhiwzhao I tried with influxdb 0.13 but i am still getting Http 404 error. Does it work with influxdb 0.13 version also as 0.13 also uses line protocol. I installed module using-- npm install git+https://github.com/zhiwzhao/statsd-influxdb-backend.git

Azulinho commented 8 years ago

as a workaround I simply deployed a statsd endpoint on the same nodes as influxdb

mchesler commented 8 years ago

@codervarun Try npm install git+https://github.com/mchesler/statsd-influxdb-backend.git (PR #36). It's working well for me against InfluxDB v0.13. I was hitting the same 404 error you were getting.

abhineet-mishra commented 8 years ago

Thanks @mchesler. I was hitting the same 404 error. Your github code solved the issue.

codervarun commented 8 years ago

Worked using mchesler code