diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | robusta_krr/main.py | 7 |
2 files changed, 5 insertions, 4 deletions
@@ -430,7 +430,7 @@ If your Prometheus monitors multiple clusters we require the label you defined f For example, if your cluster has the Prometheus label `cluster: "my-cluster-name"`, then run this command: ```sh -krr.py simple --prometheus-label cluster -l my-cluster-name +krr.py simple --prometheus-cluster-key cluster -l my-cluster-name ``` You may also need the `-p` flag to explicitly give Prometheus' URL. diff --git a/robusta_krr/main.py b/robusta_krr/main.py index c64c0f4..021c9ef 100644 --- a/robusta_krr/main.py +++ b/robusta_krr/main.py @@ -138,15 +138,16 @@ def load_commands() -> None: ), prometheus_cluster_label: Optional[str] = typer.Option( None, - "--prometheus-cluster-label", + "--prometheus-cluster-value", "-l", - help="The label in prometheus for your cluster. (Only relevant for centralized prometheus)", + help="The name of the cluster in Prometheus to scan. e.g. 'gke-prod-1'. Use with `--prometheus-cluster-key`. Only relevant for centralized prometheus.", rich_help_panel="Prometheus Settings", ), prometheus_label: str = typer.Option( None, + "--prometheus-cluster-key", "--prometheus-label", - help="The label in prometheus used to differentiate clusters. (Only relevant for centralized prometheus)", + help="The label in prometheus used to differentiate different clusters (e.g. 'cluster'). Only relevant for centralized prometheus.", rich_help_panel="Prometheus Settings", ), eks_managed_prom: bool = typer.Option( |
