Skip to content

Commit

Permalink
servicemonitorCustomResourceDefinition is need before install prometh…
Browse files Browse the repository at this point in the history
…eus.yaml

Signed-off-by: lowang-bh <lhui_wang@163.com>
  • Loading branch information
lowang-bh committed May 11, 2024
1 parent c55f10c commit 80f0fb5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions site/content/en/docs/installation/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ kubectl apply --server-side -f https://github.com/kubernetes-sigs/kueue/releases
To allow [prometheus-operator](https://github.com/prometheus-operator/prometheus-operator)
to scrape metrics from kueue components, run the following command:

> **Note**: This feature depends on [servicemonitor CRD](https://github.com/prometheus-operator/kube-prometheus/blob/main/manifests/setup/0servicemonitorCustomResourceDefinition.yaml), please ensure that CRD is installed first.
> We can follow `https://prometheus-operator.dev/docs/prologue/quick-start/` to install it.
>
```sh
git clone https://github.com/prometheus-operator/kube-prometheus.git
kubectl apply -f github.com/prometheus-operator/kube-prometheus/manifests/setup/0servicemonitorCustomResourceDefinition.yaml
```


```shell
kubectl apply --server-side -f https://github.com/kubernetes-sigs/kueue/releases/download/$VERSION/prometheus.yaml
```
Expand Down

0 comments on commit 80f0fb5

Please sign in to comment.