incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Zlatanov <>
Subject Re: Time-series data model
Date Wed, 14 Apr 2010 13:22:42 GMT
On Wed, 14 Apr 2010 15:02:29 +0200 "Jean-Pierre Bergamin" <> wrote: 

JB> The metrics are stored together with a timestamp. The queries we want to
JB> perform are:
JB>  * The last value of a specific metric of a device
JB>  * The values of a specific metric of a device between two timestamps t1 and
JB> t2

Make your key "devicename-metricname-YYYYMMDD-HHMM" (with whatever time
sharding makes sense to you; I use UTC by-hours and by-day in my
environment).  Then your supercolumn is the collection time as a
LongType and your columns inside the supercolumn can express the metric
in detail (collector agent, detailed breakdown, etc.).

If you want your clients to discover the available metrics, you may need
to keep an external index.  But from your spec that doesn't seem necessary.


View raw message