This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support multiple raw intervals per storage schema.
- closes #579 - expand storage schemas into all permutations of the retentions. eg, a schema with retentions=1s:1d,1min:7d,10min:30day becomes 3 schemas: 1 - retentions=1s:1d,1min:7d,10min:30day 2 - retentions=1min:7d,10min:30day 3 - retentions=10min:30day - when calling schemas.Match() pass in the series name and interval. We find the schema with a matching pattern and then find the sub-schema with the best retention fit. The best fit is when the metric interval is >= the rawInterval and less then the interval of the next rollup. Using our above retention policy, the following matches would occur interval=1s: 1s:1d,1min:7d,10min:30day interval=10s: 1s:1d,1min:7d,10min:30day interval=60s: 1min:7d,10min:30day interval=300s: 1min:7d,10min:30day interval=3600: 10min:30day
- Loading branch information
woodsaj
committed
Apr 5, 2017
1 parent
bb451e9
commit 5f50d02
Showing
10 changed files
with
414 additions
and
106 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
Oops, something went wrong.