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 upRead endpoint for grafana5 throws invalid memory address or nil pointer dereference #4240
Comments
This comment has been minimized.
This comment has been minimized.
|
Can you clarify what you mean by "read endpoint"? Which URL is Grafana hitting? |
This comment has been minimized.
This comment has been minimized.
|
Sorroy, read enpoint is remote read endpoint. The setting of grafana datasource for prometheus: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Grafana doesn't use the remote read endpoint. Can you capture the HTTP request in question? |
This comment has been minimized.
This comment has been minimized.
|
But I use Prometheus 2.2.1, it is ok. |
This comment has been minimized.
This comment has been minimized.
y2sarakawa
commented
Jun 10, 2018
|
Grafana 5 accesses the Prometheus /series endpoint when referring to variables. If more than one entry is in remote_read, nil is passed to "p * storage.SelectParams" in ToQuery () of storage/remote/codec.go. After merging #4122, nil pointer dereference will occur to refer to "p" when creating ReadHints in ToQuery (). Please also see #4205. |
fabxc
referenced this issue
Jun 12, 2018
Closed
web: remote read: runtime error: invalid memory address or nil pointer dereference #4205
y2sarakawa
referenced this issue
Jun 12, 2018
Closed
fix panic caused by series endpoint with remote_read #4260
iksaif
referenced this issue
Jun 13, 2018
Closed
remote read: nil pointer deference when using remove read #4263
This comment has been minimized.
This comment has been minimized.
|
Looks like a dupe of #4205 alright. |
brian-brazil
closed this
Jun 13, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 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. |

ximply commentedJun 8, 2018
Prometheus 2.3 (and 2.2.1 is ok) use as a read endpoint for grafana5 will throw a error like this:
level=error ts=2018-06-08T02:39:50.80339667Z caller=stdlib.go:89 component=web caller="http: panic serving 192.168.10.176:31525" msg="runtime error: invalid memory address or nil pointer dereference"
192.168.10.176 is the grafana server