Code

Add support for multiple metric data-stores.
authorSebastian Harl <sh@tokkee.org>
Mon, 5 Sep 2016 02:36:56 +0000 (22:36 -0400)
committerSebastian Harl <sh@tokkee.org>
Tue, 6 Sep 2016 02:21:10 +0000 (22:21 -0400)
commitbb7b99fec92dc9ea1c7ce70e050f4d97fec47ded
tree0129ee690e12a80135286c4c353850bb984ba168
parent5f7e0ee1cf668eaaec097d8f2fa0753b0c089946
Add support for multiple metric data-stores.

It did not make sense to only store one and let conflicting values override
each other on each iteration. Instead, track each separately, along with the
respective last_update timestamp. This will allow to read the right data on
access.

At the moment, when requesting a timeseries, the most up to date data store
will be used.

The network plugin does not support sending multiple data stores at the
moment. It will only send the first.
src/core/memstore-private.h
src/core/memstore.c
src/core/plugin.c
src/core/store_json.c
src/frontend/query.c
src/include/core/store.h
src/plugins/store/network.c