Is graphite suitable for tracking per day stats?

Asked by Chris Willmore

I will be processing log files and would like to track stats on a per day basis.
  I am processing a log for day 20110630.
  For every entry of type x, I would like to increment stat X with timestamp 20110630.

Is graphite suited to tracking stats on a day granularity basis?

Question information

English Edit question
Graphite Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
cbrinley (cbrinley) said :

yes graphite will allow you to store metrics at custom metric intervals, daily included.

Here is an example conf related to retention scheme

priority = 100
pattern = .*
retentions = 60:1440

[pattern] is a regular expression that will match metric IDs and apply this rule to them in this case all metrics
[retentions] is in the form (seconds per data point):(number of data points to store)
so in this example we expect to store one value for our metric (example: mycompany.serverA.cpu_util) every 60 seconds. And we will store a total of 1440 data points for this metric. (aka one day of data at minute precision).

In your example the retention might look something like this:
priority = 100
pattern = .*
retentions = 86400:365 #one data point per day store at that retention level for one year.

Can you help with this problem?

Provide an answer of your own, or ask Chris Willmore for more information if necessary.

To post a message you must log in.