graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #00155
Re: Problem viewing week/months data
Yea, graphite doesn't render beyond the configured retention for your data
and the default is 7 days of data at 1 minute precision. You can customize
the retention configuration in $GRAPHITE_ROOT/conf/storage-schemas.conf,
here's a real quick explanation of how it works.
When graphite receives a new metric it has to create a database file for it,
and when the file is created a fixed amount of disk space is allocated for
it. How much space depends on which storage schema is used for the given
metric. Usually each storage schema has a 'pattern = <some regex>' parameter
that carbon uses to match metric names against. The other important line for
each schema is the 'archives = ...' line. The right-hand-side is two numbers
of the form "secondsPerDataPoint:dataPointsToStore" that determines the
precision and retention for the schema. For example, "archives = 15:40"
would store 10 minutes of data at 15-second precision.
The other important thing to note is that this configuration only applies to
the creation of new database files. Any files that already exist and were
initially created for 7 days of retention would need to be resized with the
'whisper-resize.py' script under whisper/bin/ in trunk. Hope that helps.
-Chris
On Sat, Dec 5, 2009 at 11:16 AM, Timothee BESSET <ttimo@xxxxxxxxx> wrote:
> When selecting the data range to view in the interface, I can't seem
> to go past 7 days, and the weeks/months settings don't seem to work at
> all. I am wondering if this is because there is no data stored past
> the last 7 days (I assume that is a default setting for data storage -
> tbh that default should be higher).
>
> TTimo
>
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev<https://launchpad.net/%7Egraphite-dev>
> Post to : graphite-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~graphite-dev<https://launchpad.net/%7Egraphite-dev>
> More help : https://help.launchpad.net/ListHelp
>
References