Aggregation Rules for finding per-day metrics using per-hour metrics

Asked by Pradeep Chhetri

Hello

I am facing problem regarding writing aggregation rules for plotting per-day metrics. I have two servers which are sending metric name as

> production.email.server_1.total_emails_sent.1h.sum
> production.email.server_2.total_emails_sent.1h.sum

They are sending this metric once per hour. I am able to find the sum of these two metrics by adding an aggregation rule as follows:

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

Now I have to find the sum on per-day basis. I want a metrics named

> production.email.server_1.total_emails_sent.1d.sum

which I can find by summing the metric ( production.email.server_1.total_emails_sent.1h.sum for the past 24 hours. Can you please help me in finding out this metric.

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Nicholas Leskiw (nleskiw) said :
#2

There's no direct way to do that with aggregation-rules.conf.

However, you can use the summarize() function to graph this directly:

&target=summarize(sumSeries(production.email.all.1h.sum,"1d")

You can either save this graph in composer, create a dashboard or simply copy the URL of the image and bookmark it so you don't have to re-apply functions every time you want to see this data.

Can you help with this problem?

Provide an answer of your own, or ask Pradeep Chhetri for more information if necessary.

To post a message you must log in.