【问题标题】:Graphite. Some metrics lost, but seen in tcpdump石墨。一些指标丢失,但在 tcpdump 中可见
【发布时间】:2016-01-25 15:09:25
【问题描述】:

我使用石墨已经很长时间了,第一次遇到一些指标丢失的问题? 通过tcpdump -nA dst port 2003 我可以看到指标被传递到 Graphite 节点。 此外,其中一些正在耳语数据库中创建,并在/var/log/carbon/updates.log 中看到 但它们中的大多数都没有出现在任何地方。

所以我的问题是:我该如何调试它?如何证明 Graphite 确实从 eth0 接收到这些指标?

除了在 carbon 中的 updates.log 之外,我找不到任何调试日志。

日志:

sudo tcpdump -An dst port 2003 | grep 172_31_00_01 | grep requests

backend.dev.172_31_00_01.requests.max 60554.34 1453734067 backend.dev.172_31_00_01.requests.mean 16714.87 1453734067 backend.dev.172_31_00_01.requests.min 2.93 1453734067 backend.dev.172_31_00_01.requests.stddev 12185.74 1453734067 后端.dev.172_31_00_01.requests.p50 16415.87 1453734067 后端.dev.172_31_00_01.requests.p75 20314.51 1453734067 后端.dev.172_31_00_01.requests.p95 41526.36 1453734067 后端.dev.172_31_00_01.requests.p98 54370.59 1453734067 后端.dev.172_31_00_01.requests.p99 60368.68 1453734067 后端.dev.172_31_00_01.requests.p999 60553.31 1453734067 backend.dev.172_31_00_01.requests.count 3141 1453734067 backend.dev.172_31_00_01.requests.m1_rate 2.02 1453734067 backend.dev.172_31_00_01.requests.m5_rate 1.95 1453734067 backend.dev.172_31_00_01.requests.m15_rate 1.20 1453734067 backend.dev.172_31_00_01.requests.mean_rate 0.66 1453734067 backend.dev.172_31_00_01.requests.mark_sessionid_active.max 152.59 1453734067 backend.dev.172_31_00_01.requests.mark_sessionid_active.mean 41.86 1453734067 backend.dev.172_31_00_01.requests.mark_sessionid_active.min 0.82 1453734067 backend.dev.172_31_00_01.requests.mark_sessionid_active.stddev 24.84 1453734067 backend.dev.172_31_00_01.requests.mark_sessionid_active.p75 57.51 1453734067 backend.dev.172_31_00_01.requests.mark_sessionid_active.p95 85.78 1453734067

$ pwd
/var/lib/graphite/whisper/backend/dev/172_31_00_01/requests
$ ls -Rl
.:
total 1796
drwxr-xr-x 2 _graphite _graphite    4096 Jan 25 14:25 mark_sessionid_active
-rw-r--r-- 1 _graphite _graphite 1831744 Jan 25 15:05 mean.wsp

./mark_sessionid_active:
total 3584
-rw-r--r-- 1 _graphite _graphite 1831744 Jan 25 15:05 min.wsp
-rw-r--r-- 1 _graphite _graphite 1831744 Jan 25 15:05 stddev.wsp

PS:这不是新安装的,它已经工作了几个月,直到今天没有丢失任何指标。

【问题讨论】:

    标签: graphite


    【解决方案1】:

    carbon.conf 中有MAX_CREATES 设置。将其设置为高值(如 1000)或inf 可以解决此问题。

    【讨论】:

      【解决方案2】:

      检查carbon.conf 中的LOG_DIR 变量。就我而言,它是/var/log/carbon/,我可以在那里看到很多日志,例如console.logcreates.loglistener.log。我相信creates.log 是您所追求的。

      如果 .wsp 文件已创建,但您无法直接在 Graphite 中看到它,请尝试使用 URL API 渲染它,看看它是否有效。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-03-15
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多