Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upStatistics modules should write to time series DB #1289
Comments
cornelinux
added
idea !
Topic:database
Topic: Statistics
labels
Oct 26, 2018
cornelinux
added this to the 3.0 Code Cleanup milestone
Oct 26, 2018
This comment has been minimized.
This comment has been minimized.
There are several time series databases around. The first possible module could be the We keep the library functions in monitoringstats.py like After we made this modular, we could look for more preformant time series databases like Prometheus, Wisper or timescale DB. Finally we should drop the old statistics (lib/stats.py) which is based on the audit log an uses pandas! |
cornelinux
self-assigned this
Nov 20, 2018
This comment has been minimized.
This comment has been minimized.
BTW: the tests for |
This comment has been minimized.
This comment has been minimized.
@fredreichbier To be able to write to different time series database we need the app-configuration in some task modules like in the First I thought of passing the app-config in the do-method, but then I thought it might be nicer to pass the app-config in the constructor of the class. But now I end up with problems passing a parameter to a constructer of the task modules in your nice lamda voodoo of e.g. here: or here: It might be also only a problem due to the Mock in the tests. Let's talk. |
cornelinux commentedOct 26, 2018
Statistics data are currently written to the database table
monitoringstats
. This table can get filled up quite quickly.We need a way to rotate this data
We should allow stats modules to write to a separated time series database, that can handle this kind of data in a better way.