forked from knyar/prometheus-remote-backfill
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds the capability to reduce metrics collection to just a critical subset of the metrics. The set of metrics to be collected is derived from the YBA "MINIMAL" metrics collection level. Add a constant minimalCollectionPromRE that stores the string for the PromQL regular expression used to filter metrics in MINIMAL collection mode. Add the --collection_level flag which accepts the values "normal" (the default) or "minimal". Add code to validate the --collection_level flag value. Add handling for the new --collection_level flag to the PromQL metric builder. This adds a RegEx match expression for minimalCollectionPromRE on the saved_name label when the collection level is set to minimal and we are processing the tserver export. Update README.md with documentation for the new flag.
- Loading branch information
1 parent
5bc7b4a
commit eb607a7
Showing
2 changed files
with
80 additions
and
2 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