Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Logging Graphite使用每小时指标查找每天指标的聚合规则_Logging_Graphite - Fatal编程技术网

Logging Graphite使用每小时指标查找每天指标的聚合规则

Logging Graphite使用每小时指标查找每天指标的聚合规则,logging,graphite,Logging,Graphite,我面临的问题是如何编写用于绘制每日指标的聚合规则。我有两台服务器,它们将度量名称作为 production.email.server_1.total_email_sent.1h.sum production.email.server_2.total_email_sent.1h.sum 他们每小时发送一次该指标。通过添加如下聚合规则,我可以找到这两个指标的总和: production.email.all.1h.sum(3600)=sum production.email.*.1h.sum 现在,我

我面临的问题是如何编写用于绘制每日指标的聚合规则。我有两台服务器,它们将度量名称作为

production.email.server_1.total_email_sent.1h.sum production.email.server_2.total_email_sent.1h.sum

他们每小时发送一次该指标。通过添加如下聚合规则,我可以找到这两个指标的总和:

production.email.all.1h.sum(3600)=sum production.email.*.1h.sum

现在,我必须使用相同的每小时度量来计算每天的总和。我想要一个名为

production.email.server_1.发送的电子邮件总数.1d.sum


我可以通过对过去24小时的度量值
production.email.server\u 1.total\u emails\u sent.1h.sum
求和得到。我怎样才能找到这个指标呢?

听起来您需要汇总功能

&target=summary(production.email.server\u 1.total\u emails\u sent.1h.sum,“1day”)

看看这本书

根据工作原理,您甚至可以尝试该函数