-
Notifications
You must be signed in to change notification settings - Fork 169
Adds support for Prometheus metric rollups #1799
base: master
Are you sure you want to change the base?
Commits on Jan 11, 2023
-
Adds support to create/delete metric rollups via dataset-config.
Signed-off-by: Harkishen-Singh <[email protected]> This commit adds support for creation or deletion of metric rollups by reading the dataset-config file. The dataset config file contains a new field `downsample:` which supports 2 options: `automatic` & `resolution`. If `automatic` is false, then connector updates in the database so that `_prom_catalog.scan_for_new_rollups` does not create any new rollups (Caggs). `resolution` is a comma separated list of resolutions for downsampling, in a way that label:resolution:retention is the format that is needed. Example: `short:5m:90d,long:1h:365d` -> The resolution works in a strict manner. Its aim is to make sure that the database contains exactly those resolutions that are mentioned in the dataset config. Like, if the database already contains `short` and `long` downsampled data and the dataset is supplied with `short:5m:90d,very_long:1d:365d` then `long` downsampled case is deleted and `very_long` is created. -> `resolution` is applied if `automatic` is `true`. If automatic is not given in dataset config, it defaults to `true` based on our plan to keep downsampling applied as a default setting.
Configuration menu - View commit details
-
Copy full SHA for 297fbbd - Browse repository at this point
Copy the full SHA 297fbbdView commit details -
Update resolution config and add E2E tests for creation/deletion of r…
…ollups. Signed-off-by: Harkishen-Singh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a9fc048 - Browse repository at this point
Copy the full SHA a9fc048View commit details -
Refactor DayDuration -> day.Duation
Signed-off-by: Harkishen-Singh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7125609 - Browse repository at this point
Copy the full SHA 7125609View commit details -
Update tests related to register_metric_view().
Signed-off-by: Harkishen-Singh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f2bdb38 - Browse repository at this point
Copy the full SHA f2bdb38View commit details -
Adds support to instrument metric-rollups behaviour
Signed-off-by: Harkishen-Singh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e7e515c - Browse repository at this point
Copy the full SHA e7e515cView commit details -
Update rollups creation/deletion/updation using dataset-config.
Signed-off-by: Harkishen-Singh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 432d5fe - Browse repository at this point
Copy the full SHA 432d5feView commit details -
Signed-off-by: Harkishen-Singh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6ca6007 - Browse repository at this point
Copy the full SHA 6ca6007View commit details -
Signed-off-by: Harkishen-Singh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for de54527 - Browse repository at this point
Copy the full SHA de54527View commit details -
Signed-off-by: Harkishen-Singh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c3fb475 - Browse repository at this point
Copy the full SHA c3fb475View commit details -
Adds support for new downsampling UX.
Signed-off-by: Harkishen-Singh <[email protected]> This commit implements the update UX for creating downsampled data for Prometheus metrics. Now, downsampling can be done by ``` metrics: downsampling: 5m:30d,1h:365d ``` The above dataset-config setting will create 2 downsampling, ds_5m (interval 5m & retention 30d) and ds_1h (interval 1h & retention 365d). If an entry is removed, like ``` metrics: downsampling: 1h:365d ``` Then we disable the ds_5m downsampling from refreshing. Deletion can only happen via SQL, `CALL _prom_catalog.delete_downsampling(<schema_name>)`. This keeps the UX clean and simple. If the removed dowmsapling is applied again later on, we simply enable the refreshing. This also means that this commit adds ability to enable or disable downsampling as well.
Configuration menu - View commit details
-
Copy full SHA for 4c23c32 - Browse repository at this point
Copy the full SHA 4c23c32View commit details -
Adds support to query default downsampling views in absence of __colu…
…mn__. Signed-off-by: Harkishen-Singh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4c4ca47 - Browse repository at this point
Copy the full SHA 4c4ca47View commit details -
Support for apply_downsample_config()
Signed-off-by: Harkishen-Singh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e8c4cdd - Browse repository at this point
Copy the full SHA e8c4cddView commit details -
Add timeout for trying apply_downsamplg_config lock.
Signed-off-by: Harkishen-Singh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c334d34 - Browse repository at this point
Copy the full SHA c334d34View commit details