-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
since metrics will be generated for each cluster and each backend, we will store a lot of different points. Since this data is only meant for quick debugging, we do not need to store long term data, and we do not need very precise data. So, to preerve space, we will regularly agregate data: - all the new measures get aggregated in a point with the timestamp set at the last second - every minute, we aggregate the 60 previous measures in a point set at one minute ago - every hour, we aggregate the 60 previous "minute points" in a point set at one hour ago, and we delete all of the points older than 24h This introduces a lot of bookkeeping, so there will be runtime commands to reset the database to an empty file, and activate or deactivate the collection
- Loading branch information
1 parent
f079127
commit 9e6bd1d
Showing
3 changed files
with
224 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters