Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aantn authored Dec 10, 2023
1 parent 38cbd4b commit 618effe
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,16 +283,8 @@ krr simple --logtostderr -f yaml > result.yaml

<details>
<summary>Centralized Prometheus (multi-cluster)</summary>
<p ><a href="#scanning-with-a-centralized-prometheus">See below on filtering output from a centralized prometheus, so it matches only one cluster</a></p>

If your Prometheus monitors multiple clusters we require the label you defined for your cluster in Prometheus.

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
```

You may also need the `-p` flag to explicitly give Prometheus' URL.
</details>

<details>
Expand Down Expand Up @@ -447,6 +439,17 @@ If none of those labels result in finding Prometheus, Victoria Metrics or Thanos

<p align="right">(<a href="#readme-top">back to top</a>)</p>

## Scanning with a Centralized Prometheus
If your Prometheus monitors multiple clusters we require the label you defined for your cluster in Prometheus.

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
```

You may also need the `-p` flag to explicitly give Prometheus' URL.

## Azure Managed Prometheus

For Azure managed Prometheus you need to generate an access token, which can be done by running the following command:
Expand Down

0 comments on commit 618effe

Please sign in to comment.