如何将StatsD(以及Grafana和Graphite)设置为Kamon的后端? [英] How to set up StatsD (along with Grafana & Graphite) as backend for Kamon?

查看:117
本文介绍了如何将StatsD(以及Grafana和Graphite)设置为Kamon的后端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想跟踪 Akka 演员的指标,为此,我正在使用 Kamon 一个JVM监视工具,该工具需要后端服务来发布其统计数据,因此,为此,我决定将开源StatsD与Grafana&石墨。这是我在docker中运行的Grafana 图像(在docker的帮助下工具,因为我在Mac上),一切正常。我可以看到Grafana UI屏幕,但是它在图形中显示了一些随机数据,可能是示例图。现在,我正在努力如何使用自己的数据源对其进行配置。如果过去有人有过同样的经历,可以帮帮我吗?会提供任何帮助。

I want to track Akka actor's metrics and for that I am using Kamon a JVM monitoring tool, which requires a backend service to post it's stats data so for this purpose I've decided to use open source StatsD with the combination of Grafana & Graphite. Here is the Grafana image which I ran in the docker (with the help of docker tool since I am on Mac), everything thing is working fine. I am able to see Grafana UI screen but its showing some random data in the graphs, may be these are example graphs. Now I am struggling on how to configure it with my own datasource. If anybody here had same experience in the past, can help me? Any kind of help would be appreciated.

推荐答案

您看到的随机图是默认的grafana测试数据源。

The random graphs you are seeing are the default grafana test datasource.

首先需要配置一个新的数据源,该数据源指向Graphite指标。在这里要意识到的重要一点是,来自Grafana的Graphite数据源的URL位于同一Docker容器(即本地主机)中。

You first need to configure a new datasource that points at the Graphite metrics. The important thing to realise here is that the URL to the Graphite datasource from Grafana is located within the same Docker container i.e. the localhost.

如果您使用以下属性:

  • Name: graphite
  • Default: checked
  • Type: Graphite
  • URL: http://localhost:8000
  • Access: proxy

然后,您应该拥有一个指向Graphite度量数据的数据源。

You should then have a datasource that points to the Graphite metric data within the Docker container.

注意-Grafana UI的默认用户名/密码为 admin / admin

Note - the default username/password for the Grafana UI is admin/admin.

希望这会有所帮助。

这篇关于如何将StatsD(以及Grafana和Graphite)设置为Kamon的后端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆