obfuscurity / descartes

Introspective dashboard for Graphite
MIT License
502 stars 65 forks source link

Can't connect to Standalone Graphite #77

Closed dmourati closed 11 years ago

dmourati commented 11 years ago

I'm running graphite as a standalone server, http://graphite.mydomain.com:8080.

/usr/bin/python /usr/bin/django-admin runserver --pythonpath /opt/graphite/webapp --settings graphite.settings 0.0.0.0:8080

Descartes does not seem able to pull any graphs from graphite to populate the graphs selector.

From another thread, I see:

You should be able to self-diagnose in your browser's inspector.

Open the "graphs" page in Descartes Right-click anywhere on the page and choose Inspect Element (Chrome) Click on the Network tab Click on the Import Graphs button in Descartes. You should see at least one connection out to your Graphite instance. You should be able to see if it's having a problem (e.g. timing out, returning 4xx errors, etc) or if it returns successfully.

When I do this, I see something interesting in the inspector. Note the missing ":" between hostname and port.

ganglia.mydomain.com8080 ganglia.mydomain8080/render

{ "startedDateTime": "2013-01-07T21:00:48.056Z", "time": 91, "request": { "method": "GET", "url": "http://ganglia.mydomain.com8080/render/?height=300&width=1170&from=-1h&target=divideSeries(Equinix.SJC_DB.db5b_eye_fi.daily_active_users,Equinix.SJC_DB.db5b_eye_fi.active_users)&lineMode=slope&areaMode=stacked&logBase=10&drawNullAsZero=true&noCache=true&hideLegend=true&template=plain&hideLegend=false", "httpVersion": "HTTP/1.1", "headers": [ { "name": "User-Agent", "value": "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11" }, { "name": "Referer", "value": "http://guarded-forest-4536.herokuapp.com/graphs/33be44b5224da8441480843fb3656f00" } ], "queryString": [ { "name": "height", "value": "300" }, { "name": "width", "value": "1170" }, { "name": "from", "value": "-1h" }, { "name": "target", "value": "divideSeries(Equinix.SJC_DB.db5b_eye_fi.daily_active_users,Equinix.SJC_DB.db5b_eye_fi.active_users)" }, { "name": "lineMode", "value": "slope" }, { "name": "areaMode", "value": "stacked" }, { "name": "logBase", "value": "10" }, { "name": "drawNullAsZero", "value": "true" }, { "name": "noCache", "value": "true" }, { "name": "hideLegend", "value": "true" }, { "name": "template", "value": "plain" }, { "name": "hideLegend", "value": "false" } ], "cookies": [], "headersSize": 310, "bodySize": 0 }, "response": { "status": 0, "statusText": "", "httpVersion": "HTTP/1.1", "headers": [], "cookies": [], "content": { "size": 0, "compression": 0 }, "redirectURL": "", "headersSize": 13, "bodySize": 0 }, "cache": {}, "timings": { "blocked": 0, "dns": -1, "connect": -1, "send": -1, "wait": -1, "receive": null, "ssl": -1 }, "pageref": "page_1" }

obfuscurity commented 11 years ago

Just noticed this issue. IIRC you got Descartes running so I'm going to close this one.

dmourati commented 11 years ago

Fine, thanks. I was trying to short circuit having to configured apache: already was running ganglia on that host. Moved to a new environment, setup apache and got all working.

On Fri, Jan 11, 2013 at 10:45 AM, Jason Dixon notifications@github.comwrote:

Just noticed this issue. IIRC you got Descartes running so I'm going to close this one.

— Reply to this email directly or view it on GitHubhttps://github.com/obfuscurity/descartes/issues/77#issuecomment-12157750.

brntbeer commented 11 years ago

Glad to hear it @dmourati !