title: Graphite returning incorrect datapoint
body: <ul>
  <li>I downloaded statsd and graphite 0.9.x</li>
  <li>I used the stats-client provided with source of statsd as follows:
  <ul>
  <li><code>./statsd-client.sh 'development.com.alpha.operation.testing.rate:1|c'</code></li>
  </ul></li>
  <li>I did the above operation 10 times.</li>
  </ul>
  
  <p>Then I tried querying for a summary for last 24 hours:</p>
  
  <blockquote>
    <p><a href="http://example.com/render?format=json&amp;target=summarize(stats.development.com.alpha.operation.testing.rate" rel="nofollow">http://example.com/render?format=json&amp;target=summarize(stats.development.com.alpha.operation.testing.rate</a>,
    "24hours",  "sum",true)&amp;from=-24hours&amp;tz=UTC</p>
  </blockquote>
  
  <p>I get 1 datapoint as follows:</p>
  
  <pre><code>"datapoints": [[0.0, 1386277560]]}]
  </code></pre>
  
  <p>Why I am getting 0.0? Even Graphite Composer does not display anything</p>
  
  <p>I was expecting a value of "10" as I performed the operation 10 times. What did I do wrong?</p>
  
  <p><strong>storage-schemas.conf</strong></p>
  
  <pre><code>[carbon]
  pattern = ^carbon\.
  retentions = 60:90d
  
  [default_1min_for_1day]
  pattern = .*
  retentions = 60s:1d
  </code></pre>
  
  <p>Please help me understand the problem.</p>
  
  <p>EDIT:</p>
  
  <p>As per answer below, I changed storage-aggregation and I get following response after running whisper-info on metric_file.wsp. But I am still getting "0.0" as value in datapoint and Graphite browser does not display anything.</p>
  
  <pre><code>maxRetention: 86400
  xFilesFactor: 0.0
  aggregationMethod: sum
  fileSize: 17308
  
  Archive 0
  retention: 86400
  secondsPerPoint: 60
  points: 1440
  size: 17280
  offset: 28
  </code></pre>
  
  <p>I also looked at stats_counts Tree as suggested in another answer, but its the same.</p>
  
  <p>What is wrong with my setup. I am using default setting for everything but the changes suggested by an answer below in storage-aggregation</p>