标签: graphite

Graphite:从客户端收到的无效行(codahale 指标)

尝试使用石墨指标时,我收到了碳错误:

[listener] invalid line received from client HOST:PORT, ignoring
Run Code Online (Sandbox Code Playgroud)

因此,我尝试在 /opt/graphite/lib/carbon/protocols.py 中添加一些日志,如下所示

我在日志中看到了这个错误:

28/07/2015 10:21:14 :: [listener] invalid line - [ tta(S'com.unnyworld.db.dbclient.request_time.auth.max' ]
28/07/2015 10:21:14 :: [listener] invalid line - [ (L1438078874L ]
28/07/2015 10:21:14 :: [listener] invalid line - [ S'5' ]
Run Code Online (Sandbox Code Playgroud)

如果我们寻找正常的请求,它看起来像:

28/07/2015 10:31:07 :: [listener] nice line - [ stats.counters.statsd.bad_lines_seen.rate 0 1438079468 ]
Run Code Online (Sandbox Code Playgroud)

这里有什么问题?是碳的问题吗?或者是指标问题?我该如何解决?

指标版本为 3.1.2

碳版本 0.9.x

metrics graphite codahale-metrics

3
推荐指数
1
解决办法
1585
查看次数

在 spring-boot 中为石墨测微计事件添加前缀

我正在使用spring-boot 2graphite. 我想为我的所有指标添加前缀。

@Bean
public MeterRegistry graphiteRegistsry() {
    return new GraphiteMeterRegistry(
           GraphiteConfig.DEFAULT, Clock.SYSTEM,
           (id, convention) -> "prefix." + 
           HierarchicalNameMapper.DEFAULT.toHierarchicalName(id,convention));
}
Run Code Online (Sandbox Code Playgroud)

如果我使用此代码,这实际上是添加前缀,但也创建一些没有前缀的指标。看来他们几乎所有的指标都是重复的。

如何添加这个前缀?并且从此应用程序转到石墨的所有指标都将包含前缀?

谢谢。

java metrics graphite spring-boot micrometer

3
推荐指数
1
解决办法
3576
查看次数

使用 Grafana/Graphite 计算百分比

我正在努力计算服务器列表的百分比。

我所拥有的是:

icinga2.$server.services.Memory_Load.memory-windows.perfdata.memory.value
Run Code Online (Sandbox Code Playgroud)

icinga2.$server.services.Memory_Load.memory-windows.perfdata.memory.max
Run Code Online (Sandbox Code Playgroud)

我不知道如何计算这些值的百分比。

有人可以帮我吗?

我试图愚弄reduceSeries,mapSeriesasPercent总是从中得到一个查询错误。

我尝试过的例子:

reduceSeries(mapSeries(icinga2.$server.services.Memory_Load.memory-windows.perfdata.memory.*,1),"asPercent",3,"value","max")
Run Code Online (Sandbox Code Playgroud)

提前致谢

monitoring graphite grafana

3
推荐指数
1
解决办法
6060
查看次数

Graphite的脚本仪表板

我正在尝试使用石墨为某些指标生成仪表板.理想情况下,如果我想显示存储在graphite whisper DB中的指标,如CPU使用率,内存和日志统计信息.是否有任何工具(和文档),如kibana3,它支持脚本化的仪表板.谢谢

json dashboard graphite kibana

2
推荐指数
1
解决办法
2848
查看次数

尝试使用whisper-merge时,获取错误"TypeError:'NoneType'对象不可迭代"

我正在尝试使用whisper-merge来合并2个wsp文件.它们具有相同的保留策略,一个只有比另一个更旧的数据.

当我跑步时,whisper-merge oldfile.wsp newfile.wsp我得到这个错误

Traceback (most recent call last):
  File "/usr/local/src/whisper-0.9.12/bin/whisper-merge.py", line 32, in <module>
    whisper.merge(path_from, path_to)
  File "/usr/local/lib/python2.7/dist-packages/whisper.py", line 821, in merge
    (timeInfo, values) = fetch(path_from, fromTime, untilTime)
TypeError: 'NoneType' object is not iterable
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

这是2个文件的元数据输出:

python graphite whisper

2
推荐指数
1
解决办法
1748
查看次数

显示石墨无效线

我在石墨日志中看到很多这样的线条:

01/10/2014 21:07:12 :: [listener] invalid line received from client HOST:PORT, ignoring
Run Code Online (Sandbox Code Playgroud)

如果我能看到无效的行,那将会非常有用.一些文档和教程建议石墨会在无效警告后直接打印违规行,但对我来说却没有.我该如何启用此属性?

谢谢.

logging graphite

2
推荐指数
1
解决办法
1979
查看次数

Grafana 在最后一分钟错误地呈现数据

我是一名 NOC 操作员,负责监控 Amazon 云应用程序的性能。Ops 团队使用 Graphite 来监控其健康状况,并在其上使用 Grafana 来呈现精美的图表。按照设计,“graphite”每分钟收集一次数据但是我遇到了 Grafana 的一个问题,它在最后一分钟呈现不正确的数据(或未完全收集,请参见下面的屏幕截图)。我可以修吗?

http://i.stack.imgur.com/1xXCK.png

graphite grafana

2
推荐指数
1
解决办法
2131
查看次数

使用 Python 从 Graphite 下载数据

我是初学者,所以请友善。我想从服务器上安装的一些虚拟机下载 CPU 利用率。服务器已安装 Graphite。我安装了 Python graph-api 并且有服务器连接详细信息。如何进行 REST api 调用以开始提取数据?

graphite

2
推荐指数
1
解决办法
4355
查看次数

无法解析config.yml中的DropWizard Graphite Metrics Reporter

我尝试在config.yml文件中配置我的dropwizard graphite metrics报告器:

metrics:
  reporters:
     - type: graphite
       host: my.graphite.host.com
       port: 2003
       prefix: my.prefix
Run Code Online (Sandbox Code Playgroud)

我的pom.xml中有dropwizard-metrics和metrics-graphite作为依赖项.我的Application类或Configuration类中没有关于记者的任何内容.我的印象是DropWizard负责MetricRegistry和记者的所有初始化和启动.然而,当我运行我的应用程序时,我收到以下错误:

config.yml has an error:

  * Failed to parse configuration at: metrics.reporters; 
Could not resolve type id 'graphite' into a subtype of [simple type, 
class io.dropwizard.metrics.ReporterFactory]: 
known type ids = [ReporterFactory, console, csv, log] 
at [Source: N/A; line: -1, column: -1] 
(through reference chain: com.example.MyConfiguration["metrics"]-  
>io.dropwizard.metrics.MetricsFactory["reporters"])
Run Code Online (Sandbox Code Playgroud)

为什么'石墨'没有被接受为可接受的类型?我错过了什么?

graphite dropwizard codahale-metrics

2
推荐指数
1
解决办法
1192
查看次数

计算 Graphite 中 groupByNode() 结果的百分比

我有两组石墨系列,都是这种格式。第二组是相同的,只是它具有“xy”前缀而不是“ab”。

 a.b.ccc.a1.hr
 a.b.ccc.a2.hr
 a.b.ccc.a3.hr
 a.b.ddd.a1.hr
 a.b.ddd.a4.hr
Run Code Online (Sandbox Code Playgroud)

要按我使用的第三个节点进行分组groupByNode(a.b.*.*.hr,2,"sumSeries"),这会得到两个系列: cccddd。我想将第一组中的系列除以第二组中的相应系列ccc。如何在map/reduce函数中ddd使用结果?groupByNode

graphite grafana

2
推荐指数
1
解决办法
3960
查看次数