Javascript grafana上的脚本化仪表板

Javascript grafana上的脚本化仪表板,javascript,json,graphite,grafana,Javascript,Json,Graphite,Grafana,我使用grafana处理graphite数据,但当我试图解析它时,我得到了一个错误。这是因为服务器没有给我JSON 我正在尝试使用脚本化仪表盘,我使用的脚本如下: 在函数expand\u filter\u values行var obj=JSON.parse(req.responseText)

我使用grafana处理graphite数据,但当我试图解析它时,我得到了一个错误。这是因为服务器没有给我JSON

我正在尝试使用脚本化仪表盘,我使用的脚本如下:

函数expand\u filter\u values
var obj=JSON.parse(req.responseText)响应.text
不是JSON对象,而是包含以下内容的html:

< !-- 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>
<!--版权所有2008 Orbitz WorldWide
根据Apache许可证2.0版(以下简称“许可证”)获得许可;
除非遵守许可证,否则不得使用此文件。
您可以通过以下方式获得许可证副本:
http://www.apache.org/licenses/LICENSE-2.0
除非适用法律要求或书面同意,软件
根据许可证进行的分发是按“原样”进行分发的,
无任何明示或暗示的保证或条件。
请参阅许可证以了解管理权限和权限的特定语言
许可证下的限制。-->


石墨浏览器

你能帮我一下吗?

Graphite地址错了,我换了,一切正常。

你能给我你在grafana配置中填写的Graphite地址吗?看起来您调用的是“人类视图”,而不是graphite api