Skip to content

Commit

Permalink
fix: whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
eliecharra committed Jan 17, 2025
1 parent 16b84e7 commit 9964743
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/concepts/worker-pools/kubernetes-workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ The controller may also work with older versions, but we do not guarantee and pr
[The latest CRD's can be found in this link](https://github.com/spacelift-io/spacelift-helm-charts/tree/main/spacelift-workerpool-controller/crds).

!!! tip "Prometheus metrics"
The controller also has a subchart for our prometheus-exporter project that exposes metrics in OpenMetrics spec.
This is useful for scaling workers based on queue length in spacelift (`spacelift_worker_pool_runs_pending` metric).
The controller also has a subchart for our prometheus-exporter project that exposes metrics in OpenMetrics spec.
This is useful for scaling workers based on queue length in spacelift (`spacelift_worker_pool_runs_pending` metric).
To install the controller with the prometheus-exporter subchart, use the following command:
```shell
helm upgrade spacelift-workerpool-controller spacelift/spacelift-workerpool-controller --install --namespace spacelift-worker-controller-system --create-namespace \
helm upgrade spacelift-workerpool-controller spacelift/spacelift-workerpool-controller --install --namespace spacelift-worker-controller-system --create-namespace \
--set spacelift-promex.enabled=true \
--set spacelift-promex.apiEndpoint="https://{yourAccount}.app.spacelift.io" \
--set spacelift-promex.apiKeyId="{yourApiToken}" \
--set spacelift-promex.apiKeySecretName="spacelift-api-key"
```
Read more on the exporter on its repository [here](https://github.com/spacelift-io/prometheus-exporter) and see more config options in the `values.yaml` file for the subchart.
Read more on the exporter on its repository [here](https://github.com/spacelift-io/prometheus-exporter) and see more config options in the `values.yaml` file for the subchart.

### Create a Secret

Expand Down

0 comments on commit 9964743

Please sign in to comment.