【问题标题】:Scripted dashboard on grafanagrafana 上的脚本仪表板
【发布时间】:2014-10-19 02:33:57
【问题描述】:

我正在使用 grafana 处理石墨数据,但是当我尝试解析它时出现错误。发生这种情况是因为服务器没有给我 JSON。

我正在尝试使用脚本仪表板,我正在使用的脚本是:https://gist.github.com/anatolijd/73b1360c9780c0d161b1

function expand_filter_valuesvar obj = JSON.parse(req.responseText); 行上,response.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>

你能帮帮我吗?

【问题讨论】:

  • 可以给你在grafana config中填写的graphite地址吗?看来你称之为“人类观点”而不是石墨 api

标签: javascript json graphite grafana


【解决方案1】:

石墨地址错了,我改了,一切正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-03-09
    • 2019-09-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-28
    • 1970-01-01
    • 1970-01-01
    • 2021-04-27
    相关资源
    最近更新 更多