我在石墨中的logstash度量值在哪里? [英] where are my logstash metrics in graphite?

查看:95
本文介绍了我在石墨中的logstash度量值在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个noobie问题,但是很难找到答案,所以我希望你们能在这里为我提供帮助.

This is probably a noobie question, but am having a hard time finding the answers, so I hope you guys can help me here.

我有一个running logstash实例将日志从一台服务器传送到另一台运行石墨的服务器.

I have a running logstash instance shipping logs from one server to another server which is running graphite.

这是我的输出配置

output {
    stdout { codec => rubydebug }
    graphite {
        host => "xxxxxxx.yyyy.amazonaws.com"
        port => 2003
        type => "logstash-metrics"
        metrics => ["logstash.%{remote_addr}", "logstash.%{status}"]
    }
}

我检查了防火墙没有阻止TCP 2003 on xxxxxxx.yyyy.amazonaws.com运行石墨的位置,但是当我进入石墨的UI时似乎找不到我的任何指标,我想知道这可能是什么原因吗?

I have checked the firewall is not blocking TCP 2003 on xxxxxxx.yyyy.amazonaws.com where has graphite running, however when I go to graphite's UI can not seem to find any of my metrics, I am wondering what could be the reason?

谢谢!

推荐答案

以下内容看起来不是 answer ,但是由于您的问题是调试性质的问题,因此这是我认为最好的形式可以提出-

The following does not look like an answer but since your question is that of a debugging nature, this is the best form that i can come up with-

  1. 确保石墨堆叠工作正常.最简单的方法是在壳上运行几次,并验证相应的图形是否出现在石墨上-

  1. Make sure the graphite stack is working. The easiest way is to run this on the shell a few times and verify that the corresponding graph appears on graphite-

回显"test.first 10`date +%s`" | nc石墨.example.com 2003.

echo "test.first 10 `date +%s`"| nc graphite.example.com 2003.

由于堆栈中似乎没有statsd,因此不必检查其是否正确中继.

Since you do not seem to have statsd in the stack, you don't have to check if it is correctly relaying.

listener.log-在打开和关闭NW连接时记录日志.

listener.log- logs whenever NW connections are opened and closed.

06/12/2013 06:09:58 :: MetricLineReceiver connection with 127.0.0.1:59766 established
06/12/2013 06:10:00 :: MetricLineReceiver connection with 127.0.0.1:59766 closed cleanly

updates.log-记录度量标准更新.

06/12/2013 06:15:39 :: wrote 1 datapoints for stats.message.service.time_taken.std in 0.00017 seconds
06/12/2013 06:15:39 :: wrote 1 datapoints for exchange.message.job.service.time_taken.sum in 0.00016 seconds

creates.log-记录新的.wsp文件创建的新指标.

creates.log- logs creation of new .wsp files for new metrics.

06/12/2013 06:17:31 :: new metric event.response.time_taken.sum_80 matched schema com
06/12/2013 06:17:31 :: new metric event.response.time_taken.sum_80 matched aggregation schema timers_fall_here
06/12/2013 06:17:31 :: creating database file /opt/graphite/storage/whisper/event/response/time_taken/sum_80.wsp (archive=[(300, 105120)] xff=0.0 agg=average)

通过这些操作,您可以查找未建立连接的天气(NW问题)或wsp文件没有创建(文件系统权限问题).如果使用nc向石墨发送度量标准有效,则需要检查logstash端.

Going through these you can find out weather the connection is not being created (NW issue) or if the wsp file creation isn't happening (file system permission issue). If sending metrics to graphite using nc works, then it is the logstash end that needs to be looked into.

这篇关于我在石墨中的logstash度量值在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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