diff options
| author | Avi-Robusta <97387909+Avi-Robusta@users.noreply.github.com> | 2023-08-24 09:43:12 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-24 09:43:12 +0300 |
| commit | bdd50f8074494508ead4d3ea4bc8a9c8c11eb711 (patch) | |
| tree | b6b5a131950d9ca7610922ace0e4949521c0aa7e /robusta_krr | |
| parent | 54569717fc8767d78fd8ea163ac12d1ce1b36fc2 (diff) | |
added minimum reccomendation from cmd (#134)
* added minimum reccomendation from cmd
need to add to readme
* re-named settings
* added config info to readme
Diffstat (limited to 'robusta_krr')
| -rw-r--r-- | robusta_krr/core/models/config.py | 2 | ||||
| -rw-r--r-- | robusta_krr/main.py | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/robusta_krr/core/models/config.py b/robusta_krr/core/models/config.py index a3b7be0..d170ef5 100644 --- a/robusta_krr/core/models/config.py +++ b/robusta_krr/core/models/config.py @@ -21,7 +21,7 @@ class Config(pd.BaseSettings): selector: Optional[str] = None # Value settings - cpu_min_value: int = pd.Field(100, ge=0) # in millicores + cpu_min_value: int = pd.Field(10, ge=0) # in millicores memory_min_value: int = pd.Field(100, ge=0) # in megabytes # Prometheus Settings diff --git a/robusta_krr/main.py b/robusta_krr/main.py index b9a2d3e..4a114e4 100644 --- a/robusta_krr/main.py +++ b/robusta_krr/main.py @@ -169,6 +169,18 @@ def load_commands() -> None: help="Adds the token needed to query Coralogix managed prometheus.", rich_help_panel="Prometheus Coralogix Settings", ), + cpu_min_value: int = typer.Option( + 10, + "--cpu-min", + help="Sets the minimum recommended cpu value in millicores.", + rich_help_panel="Recommendation Settings", + ), + memory_min_value: int = typer.Option( + 100, + "--mem-min", + help="Sets the minimum recommended memory value in MB.", + rich_help_panel="Recommendation Settings", + ), max_workers: int = typer.Option( 10, "--max-workers", @@ -209,6 +221,8 @@ def load_commands() -> None: max_workers=max_workers, format=format, verbose=verbose, + cpu_min_value=cpu_min_value, + memory_min_value=memory_min_value, quiet=quiet, log_to_stderr=log_to_stderr, file_output=file_output, |
