如何配置grafana以在石墨中显示数据

时间:2014-11-24 17:04:59

标签: configuration graphite grafana

我正在尝试为石墨配置grafana。我使用以下链接配置石墨。 Graphite在我的笔记本电脑上运行8080端口。我能够使用我创建的示例项目发送数据,并且能够在石墨UI上看到相同的图形。我通过端口2003将数据发送到石墨,即端口哪个碳运行。 石墨安装 - https://gist.github.com/albertohm/5697429

我正在尝试配置grafana现在显示石墨上的数据。我使用下面的链接配置grafana。我只对配置文件进行了更改。当我单击index.html文件时,我可以看到grafana UI,但它没有显示石墨上存在的数据。有人可以帮我这个。 Grafana安装链接 - http://grafana.org/docs/

我的笔记本电脑上正在运行所有服务。

以下是我在grafana上使用的配置文件。

define(['settings'],
function (Settings) {


  return new Settings({


    datasources: {
      graphite: {
        type: 'graphite',
        url: "http://127.0.0.1:8080",
        default: true,
        //render_method: 'GET',
      }
    },


    /* Global configuration options
    * ========================================================
    */

    // specify the limit for dashboard search results
    search: {
      max_results: 20
    },

    // default home dashboard
    default_route: '/dashboard/file/default.json',
    //default_route: '/opt/graphite/webapp/graphite/dashboard',

    // set to false to disable unsaved changes warning
    unsaved_changes_warning: true,

    // set the default timespan for the playlist feature
    // Example: "1m", "1h"
    playlist_timespan: "1m",

    // If you want to specify password before saving, please specify it bellow
    // The purpose of this password is not security, but to stop some users from accidentally changing dashboards
    admin: {
      password: ''
    },

    // Change window title prefix from 'Grafana - <dashboard title>'
    window_title_prefix: 'Grafana - ',

    // Add your own custom panels
    plugins: {
      // list of plugin panels
      panels: [],
      // requirejs modules in plugins folder that should be loaded
      // for example custom datasources
      dependencies: [],
    }

  });
});

提前致谢。

0 个答案:

没有答案