Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upQuerying returns HTTP 400 Bad Request #2780
Comments
This comment has been minimized.
This comment has been minimized.
|
So i have tracked it down to the So with InfluxDB basically removed from prometheus core and the adapter not really working, i currently have no real possibility to connect prometheus and influxdb, right? |
This comment has been minimized.
This comment has been minimized.
Hm, I'm not sure I understand where you mean the error exactly occurs. If a given expression selects no series on the InfluxDB side and the InfluxDB response is empty, this should not result in an error. Using the same Is InfluxDB throwing an error? Which version of InfluxDB are you using? I'm on 1.2.2. |
This comment has been minimized.
This comment has been minimized.
|
Could this be a protocol mismatch due to the compression changes? |
This comment has been minimized.
This comment has been minimized.
|
Oh. Yeah, this is likely if the adapter was built from HEAD. Prometheus 1.6.3 does not include the changed Snappy compression yet. @simonszu Could you try either building the InfluxDB adapter from the |
This comment has been minimized.
This comment has been minimized.
|
Ah, okay. I'll try. Yes, i compiled the adapter from HEAD this morning. |
This comment has been minimized.
This comment has been minimized.
|
Okay, after using the binary i have compiled from v1.6.3 and completely dropping the old prometheus InfluxDB and recreating it it works like a charm now. Thanks guys. (I got lots of HTTP 500s first, but i vaguely remembered that InfluxDB had changed something with their automatic retention from However, is it planned to release pre-compiled binaries for the adapter in the future? I hope so. |
simonszu
closed this
May 29, 2017
This comment has been minimized.
This comment has been minimized.
Yes, once the adapter is more than just an example in the documentation directory. Probably it should be a separate repo at some point. |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
simonszu commentedMay 29, 2017
What did you do?
Installed prometheus with node_exporter scraper. Tried to fetch the node_cpu metrics first, any other metrics after that. I have selected node_cpu on the dropdown menu on the Graph tab, and clicked "Execute".
What did you expect to see?
Some numbers representing actual values for this metrics.
What did you see instead? Under which circumstances?
A red error message,
Error executing query: server returned HTTP status 400 Bad Request. So i looked into the access.log of the nginx instance i am reverse proxying prometheus with, and discovered that the API call looked like this:GET /api/v1/query_range?query=node_memory_MemFree%7Binstance%3D~%27calad%27%7D&start=1495440400&end=1496045200&step=600 HTTP/1.1So i tried to access this API endpoint manually and all i got was a result
{"status":"error","errorType":"execution","error":"server returned HTTP status 400 Bad Request"}Maybe Prometheus creates faulty request strings for its own API? I don't know.
Environment
System information:
Linux 4.4.50-v7+ armv7l
(Raspberry Pi 3, with Raspbian installed)
Prometheus version:
prometheus, version 1.6.3 (branch: master, revision: c580b60)
build user: root@a6410e65f5c7
build date: 20170522-09:41:06
go version: go1.8.1
Prometheus configuration file:
https://pastebin.com/uHWYiZ6E
Logs:
I am starting prometheus via systemd. Loglevel is set to "debug". The output of journalctl does not show any log entries relevant to this issue.