title: Graphite Aggregation Rules for finding per-day metrics using per-hour metrics
body: <p>I am facing problem regarding writing aggregation rules for plotting per-day metrics. I have two servers which are sending metric name as</p>
  
  <blockquote>
    <p>production.email.server_1.total_emails_sent.1h.sum
    production.email.server_2.total_emails_sent.1h.sum</p>
  </blockquote>
  
  <p>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:</p>
  
  <p>production.email.all.1h.sum (3600) = sum production.email.*.1h.sum</p>
  
  <p>Now I have to find the sum on per-day basis by using the same per-hour metric. I want a metrics named</p>
  
  <blockquote>
    <p>production.email.server_1.total_emails_sent.1d.sum</p>
  </blockquote>
  
  <p>which I can find by summing the metric <code>production.email.server_1.total_emails_sent.1h.sum</code> for the past 24 hours. How can I find out this metric?</p>