From 06f7f960672618f4cc76bf7f7213e310861ac06e Mon Sep 17 00:00:00 2001 From: chengzw <40051120+cr7258@users.noreply.github.com> Date: Tue, 18 Jul 2023 19:01:48 +0800 Subject: Set default value of prometheus_label to None (#101) * set default value of prometheus_label to None * update doc * optimize validate_cluster_name check logic --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a465f6b..677354c 100644 --- a/README.md +++ b/README.md @@ -357,13 +357,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"` and your prometheus is at url `http://my-centralized-prometheus:9090`, then run this command: ```sh -krr.py simple -p http://my-centralized-prometheus:9090 -l my-cluster-name -``` - -If you are using a label for your cluster other than `cluster` for example the label `env: "dev-tests"` you can specify it by running: - -```sh -krr.py simple -p http://my-centralized-prometheus:9090 --prometheus-label env -l dev-tests +krr.py simple -p http://my-centralized-prometheus:9090 --prometheus-label cluster -l my-cluster-name ```

(back to top)

-- cgit v1.2.3