Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status code: 400: {"error":"missing measurement"} #83

Closed
argais opened this issue Jun 15, 2015 · 2 comments
Closed

Status code: 400: {"error":"missing measurement"} #83

argais opened this issue Jun 15, 2015 · 2 comments

Comments

@argais
Copy link

argais commented Jun 15, 2015

All data sent to influx 0.9.0 returns this error:

Status code: 400: {"error":"missing measurement"}

Changing this on the graphios_backends.py

            perfdata.append({
                            "timestamp": int(m.TIMET),
                            "name": path,
                            "tags": tags,
                            "fields": {"value": value}})

to

            perfdata.append({
                            "timestamp": int(m.TIMET),
                            "measurement": path,
                            "tags": tags,
                            "fields": {"value": value}})

Fixed it for me.
Thing is, I am not sure why I should have to change that, since even the InfluxDB docs use name: in its examples...
Is this the case of changing it on graphios or should I go bug the peeps at InfluxDB?

@gabrieltholsgard
Copy link

@argais
Hi, looking in to system monitoring using influxdb for metrics so came across this and saw your question to which I have an answer I think.
It's not documented but if you check this issue you can see that they proposed a change from "name" to "measurement".
influxdata/influxdb#2564

@Shaps
Copy link

Shaps commented Jul 4, 2015

Hi,
This should be fixed with #84

@argais argais closed this as completed Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants