Заскриптованный дашборд на grafana

Я использую grafana для работы с графитовыми данными, но когда я пытаюсь их разобрать, я получаю сообщение об ошибке. Это происходит потому, что сервер не дает мне JSON.

Я пытаюсь работать с инструментальными панелями со сценариями, и сценарий, который я использую, следующий: https://gist.github.com/anatolijd/73b1360c9780c0d161b1

В строке function expand_filter_values строка var 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>

Не могли бы вы помочь мне с этим, пожалуйста?


person Felippe Raposo    schedule 25.08.2014    source источник
comment
Можете ли вы дать адрес графита, который вы заполнили в конфигурации grafana? кажется вы называете человеческий вид вместо графитового апи   -  person kamaradclimber    schedule 27.09.2014


Ответы (1)


Графит адрес ошибся, поменял и все заработало.

person Felippe Raposo    schedule 29.10.2014