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

HTTP request error, and can't fetch metrics #64

Closed
epvklout opened this issue Feb 5, 2014 · 2 comments
Closed

HTTP request error, and can't fetch metrics #64

epvklout opened this issue Feb 5, 2014 · 2 comments

Comments

@epvklout
Copy link

epvklout commented Feb 5, 2014

I've set up a new 0.9.12 graphite server and am using grafana from the 1.0.4 tarball. Graphite has no auth enabled. Graphite and elasticsearch are on the same host, which is directly reachable by the browser.

When grafana starts in the browser, the test graph (randomwalk, etc) shows "Oops! HTTP Request error". tcpdump shows that the browser sends a POST /render/ request containing:

from=-6h&until=now&target=randomWalk('random%20walk')&target=randomWalk('random%20walk2')&target=randomWalk('random%20walk3')&maxDataPoints=600&format=json

and receives back a "HTTP/1.1 200 OK" result containing:

[{"target": "random walk", "datapoints": [[0, 1391610485], [-0.32153186425113056, 1391610545], [-0.7608628977570804, 1391610605], ... ... ... }]

Further, when using Configure Dashboard -> Metrics -> Load All, the browser sends to graphite "GET /metrics/index.json HTTP/1.1" and receives a "HTTP/1.1 200 OK" result back containing:

["carbon.agents.my_graphite_server-a.avgUpdateTime", "carbon.agents.my_graphite_server-a.cache.overflow", "carbon.agents.my_graphite_server-a.cache.queries", "carbon.agents.my_graphite_server-a.cache.queues", "carbon.agents.my_graphite_server-a.cache.size", "carbon.agents.my_graphite_server-a.committedPoints", "carbon.agents.my_graphite_server-a.cpuUsage", "carbon.agents.my_graphite_server-a.creates", "carbon.agents.my_graphite_server-a.errors", "carbon.agents.my_graphite_server-a.memUsage", "carbon.agents.my_graphite_server-a.metricsReceived", "carbon.agents.my_graphite_server-a.pointsPerUpdate", "carbon.agents.my_graphite_server-a.updateOperations", "servers.127_0_0_1_9400.sun_management_GarbageCollectorImpl.CollectionCount", "servers.127_0_0_1_9400.sun_management_GarbageCollectorImpl.CollectionTime",
... ]

and the display in grafana shows a red box containing:

{"data":"","status":0,"config":{"transformRequest":[null],"transformResponse":[null],"method":"GET","url":"http://my_graphite_server/metrics/index.json","headers":{"Accept":"application/json, text/plain, */*"}}} 

I've tried pointing it at a number of other graphite servers with the same results, but they are running 0.9.10 instead of 0.9.12. The only things I have edited in config.js are elasticsearch and graphiteUrl. I've also tried both the 1.0.4 grafana tarball and a copy cloned from master.

I'm not sure what's going wrong here but it does not appear to be failing to talk to the graphite server, since I can watch the network exchange and it looks correct.

@torkelo
Copy link
Member

torkelo commented Feb 6, 2014

Strange, the randomWalk graphite request returns data and status code 200, grafana somehow gets a 500 error? Very strange. Try other time ranges, and with real metric expressions. (not just randomWalk).

Regarding:
Configure Dashboard -> Metrics -> Load All, this is a feature that is not ready, should have removed this tab in the release but forgot to.

@torkelo
Copy link
Member

torkelo commented Feb 15, 2014

Are you still having http error issues?

@torkelo torkelo closed this as completed Apr 1, 2014
bentranter pushed a commit to walmartlabs/grafana that referenced this issue May 15, 2017
Persist response when switching between deltas
sunker added a commit that referenced this issue Nov 29, 2021
* fix annotation editor

* fix broken test
sunker added a commit that referenced this issue Nov 30, 2021
* add support for code editor and builder

* refactor cloudwatch migration

* Add tooltip to editor field (#56)

* add tooltip

* add old tooltips

* Bug bash feedback fixes (#58)

* make ASC the default option

* update sql preview whenever sql changes

* don't allow queries without aggregation

* set default value for aggregation

* use new input field

* cleanup

* pr feedback

* prevent unnecessary rerenders

* use frame error instead of main error

* remove not used snapshot

* Use dimension filter in schema picker  (#63)

* use dimension key filter in group by and schema labels

* add dimension filter also to code editor

* add tests

* fix build error

* fix strict error

* remove debug code

* fix annotation editor (#64)

* fix annotation editor

* fix broken test

* revert annotation backend change

* PR feedback (#67)

* pr feedback

* removed dimension filter from group by

* add spacing between common fields and rest

* do not generate deep link for metric queries (#70)

* update docs (#69)

Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>

* fix lint problem caused by merge conflict

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
grafanabot pushed a commit that referenced this issue Nov 30, 2021
* add support for code editor and builder

* refactor cloudwatch migration

* Add tooltip to editor field (#56)

* add tooltip

* add old tooltips

* Bug bash feedback fixes (#58)

* make ASC the default option

* update sql preview whenever sql changes

* don't allow queries without aggregation

* set default value for aggregation

* use new input field

* cleanup

* pr feedback

* prevent unnecessary rerenders

* use frame error instead of main error

* remove not used snapshot

* Use dimension filter in schema picker  (#63)

* use dimension key filter in group by and schema labels

* add dimension filter also to code editor

* add tests

* fix build error

* fix strict error

* remove debug code

* fix annotation editor (#64)

* fix annotation editor

* fix broken test

* revert annotation backend change

* PR feedback (#67)

* pr feedback

* removed dimension filter from group by

* add spacing between common fields and rest

* do not generate deep link for metric queries (#70)

* update docs (#69)

Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>

* fix lint problem caused by merge conflict

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
(cherry picked from commit bab78a9)
sunker added a commit that referenced this issue Nov 30, 2021
* add support for code editor and builder

* refactor cloudwatch migration

* Add tooltip to editor field (#56)

* add tooltip

* add old tooltips

* Bug bash feedback fixes (#58)

* make ASC the default option

* update sql preview whenever sql changes

* don't allow queries without aggregation

* set default value for aggregation

* use new input field

* cleanup

* pr feedback

* prevent unnecessary rerenders

* use frame error instead of main error

* remove not used snapshot

* Use dimension filter in schema picker  (#63)

* use dimension key filter in group by and schema labels

* add dimension filter also to code editor

* add tests

* fix build error

* fix strict error

* remove debug code

* fix annotation editor (#64)

* fix annotation editor

* fix broken test

* revert annotation backend change

* PR feedback (#67)

* pr feedback

* removed dimension filter from group by

* add spacing between common fields and rest

* do not generate deep link for metric queries (#70)

* update docs (#69)

Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>

* fix lint problem caused by merge conflict

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
(cherry picked from commit bab78a9)

Co-authored-by: Erik Sundell <erik.sundell@grafana.com>
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

2 participants