简体   繁体   English

计算一个自由度量的点数

[英]Count number of point for a librato metric

I'm trying to build a composite metric to know how many point are sent on a period for a specific metric. 我正在尝试构建一个复合指标,以了解特定指标在一个周期内发送了多少点。 The closer stackoverflow response to this is about counting the number of source, and I failed to change it to do what I want ( How can i count the total number of sources my metric has with Librato? ) 对此更接近的stackoverflow响应是关于计数源数量,而我未能更改它以执行我想要的操作( 如何计算我的指标使用Librato的源总数?

The metric in question is a timing on a function execution, that receive around 20k values on peak hour At first, I sum-ed the series with a count aggregation, and the pattern I had then was close to what I expected, but regarding our logs, it always differ 有问题的度量标准是函数执行的时间,在高峰时间会收到约20k的值。首先,我用一个计数汇总对系列进行求和,然后得出的模式接近我的预期,但是关于我们日志,它总是不同

The composite I made was like that 我制作的合成纸就是这样

sum(s("timing", "%", {function:"count"}))

Any ideas ? 有任何想法吗 ?

Thanks 谢谢

Well, the librato support told me the composite do what I want 好吧,天秤座的支持者告诉我复合材料可以完成我想要的操作

The differences with the logs were due to errors during metrics sending 与日志的差异是由于指标发送期间发生错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM