I'm running into an issue while using grafana with graphite data. When I attempt to parse the data, I encounter an error due to the server not providing a JSON response.
I am experimenting with scripted dashboards and utilizing the script found here: https://gist.github.com/anatolijd/73b1360c9780c0d161b1
Within the function expand_filter_values
, specifically on the line
var obj = JSON.parse(req.responseText);
, it seems that the response.text
is not formatted as a JSON object but instead contains HTML content:
< !-- Copyright 2008 Orbitz WorldWide
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -- >
< html><br>
< head><br>
< title>Graphite Browser< /title><br>
< /head>
< frameset rows="60,*" frameborder="1" border="1">
< frame src="/browser/header/" name="Header" id='header' scrolling="no" noresize="true" />
< frame src="/composer/?query=myhost.xxx.%2A" name="content" id="composerFrame"/>
< /frameset>
< /html>
Could someone offer assistance in resolving this issue? Your help would be greatly appreciated.