Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Aggregation by time #139

Open
twiechert opened this issue Oct 30, 2017 · 3 comments
Open

Aggregation by time #139

twiechert opened this issue Oct 30, 2017 · 3 comments
Assignees

Comments

@twiechert
Copy link

twiechert commented Oct 30, 2017

I use chronix to store counts of available car sharing vehicles. I use tags/attributes to distinguish different vehicle classes, such that I don't need to manage a dedicated time series per vehicle type/class. Thus, at every t, I persist multiple records.

How do I aggregate the time series by time and apply a sum operator, so that I'm able to retrieve a series of available vehicles regardless of vehicle type/class?

Thanks in advance.

@FlorianLautenschlager
Copy link
Member

Chronix does not provide aggregations over time. The reason is: If a client requests the whole data he has to touch it anyway and hence he can transform the data in the way he likes it. It is faster than loading the whole data in Chronix (decompress + deserialize), transform it and serialize and compress it again and ship it and deserialize and decompress it.

However i think this i a useful extension and i am willing to implement this (or you can).

@twiechert
Copy link
Author

I get your point. However, when using the Grafana plugin for example, the user is not able to intercept the returned values and thus the graphs only show one of the values per time instant. This probably not the best example, as the query facilities trough this plugin are currently very limited.

For me, however, it's ok to know that the data is "there" and returned and not already discarded by the data store. But I still consider this feature very useful.

@FlorianLautenschlager
Copy link
Member

Yes. We should provide such functions! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants