First of all, thank you for publishing Graph Explorer, it looks pretty neat.
I have a working Graphite system (I can generate & view graphs via the default interface) but when I attempt to view graphs in Graph Explorer I get...
Error: Failed to do graphite POST request to http://nlpanms-1:8085/render: error:.
I read the GE documentation and added the three Header set Access-Control lines to httpd.conf and restarted without errors. I have also gone through the config.py and local settings files and don't see any issues there either. When using the Firefox browser call debugger, I do see the following error in the Network Response tab:
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data.
Any suggestions for additional troubleshooting? I have included the render request & response below.
First of all, thank you for publishing Graph Explorer, it looks pretty neat.
I have a working Graphite system (I can generate & view graphs via the default interface) but when I attempt to view graphs in Graph Explorer I get... Error: Failed to do graphite POST request to http://nlpanms-1:8085/render: error:.
I read the GE documentation and added the three Header set Access-Control lines to httpd.conf and restarted without errors. I have also gone through the config.py and local settings files and don't see any issues there either. When using the Firefox browser call debugger, I do see the following error in the Network Response tab: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data.
Any suggestions for additional troubleshooting? I have included the render request & response below.
/* Client Request/ POST /render HTTP/1.1 Host: nlpanms-1:8085 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:40.0) Gecko/20100101 Firefox/40.0.3 Waterfox/40.0.3 Accept: application/json, text/javascript, */; q=0.01 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Referer: http://nlpanms-1:8080/index/UpdateTime Content-Length: 131 Origin: http://nlpanms-1:8080 Connection: keep-alive Pragma: no-cache Cache-Control: no-cache
from=-24hours&until=now&target=alias(carbon.agents.nlpanms-1-a.avgUpdateTime,'carbon.agents.nlpanms-1-a.avgUpdateTime')&format=json
/Server response/ HTTP/1.0 200 OK Date: Fri, 18 Mar 2016 14:31:56 GMT Server: WSGIServer/0.1 Python/2.6.6 Content-Length: 18093 Content-Encoding: gzip Expires: Fri, 18 Mar 2016 14:32:56 GMT Vary: Accept-Encoding Last-Modified: Fri, 18 Mar 2016 14:31:56 GMT Cache-Control: max-age=60 Content-Type: application/json
<18093 bytes of compressed response data> A partial snippet of the content after decompression is... [{"target": "carbon.agents.nlpanms-1-a.avgUpdateTime", "datapoints": [[6.7542357878251513e-05, 1458225120], [6.5166841853748665e-05, 1458225180], [6.6682967272671786e-05, 1458225240], [7.2549581527709965e-05, 1458225300], [6.5570419484918763e-05, 1458225360], [7.0108500393954192e-05, 1458225420], [6.9727789271961554e-05, 1458225480], [6.9652145559137514e-05, 1458225540], [7.8617009249600499e-05, 1458225600], [7.6642253182151096e-05, 1458225660], [6.7208030007102269e-05, 1458225720], [6.6188573837280276e-05, 1458225780], [6.5523277629505502e-05, 1458225840], [7.4737722223455262e-05, 1458225900], I have looked through lots of log files and I don't see anything obviously bad in them. The graphite httpd log file in particular shows the render requests as... [18/Mar/2016 09:17:22] "POST /render HTTP/1.1" 200 3566 [18/Mar/2016 09:17:22] "POST /render HTTP/1.1" 200 5432 [18/Mar/2016 09:17:22] "POST /render HTTP/1.1" 200 3562 [18/Mar/2016 09:17:22] "POST /render HTTP/1.1" 200 5434 [18/Mar/2016 09:17:22] "POST /render HTTP/1.1" 200 17587 [18/Mar/2016 09:17:22] "POST /render HTTP/1.1" 200 3555 [18/Mar/2016 09:17:22] "POST /render HTTP/1.1" 200 9332 Thank you for your assistance.