# Install OTel Scaler

OTel Scaler runs as a separate Helm release. Start with [Kedify KEDA](https://docs.kedify.io/installation/helm/) so you can use the `kedify-otel` trigger. Use the KEDA namespace for the scaler. The examples use `keda`.

## 1. Check KEDA and choose a metric source

Check that the external metrics API reports `AVAILABLE=True`:

```bash
kubectl get apiservice v1beta1.external.metrics.k8s.io
```

| Metric source | Use it when |
| --- | --- |
| **Direct OTLP** | Your application can send metrics over OTLP/gRPC. |
| **Use an existing collector** | A collector already receives or scrapes your metrics. |
| **Install Kedify collector** | You want a collector to receive OTLP or scrape a Prometheus endpoint. |

## 2. Install the scaler

### Dashboard

Open [Install Kedify](https://docs.kedify.io/installation/) and select **OTel Scaler**. Choose the **Metric source** in **OTel Scaler settings**. For **Install Kedify collector**, choose OTLP/gRPC or enter the Prometheus scrape target as a reachable host and port.

Apply the separate OTel release after KEDA is ready. Use the generated [Helm command or values file](https://docs.kedify.io/installation/helm/#values-files), [Argo CD Application](https://docs.kedify.io/installation/argo-cd/#separate-components), or [Flux HelmRelease](https://docs.kedify.io/installation/flux/#separate-components). If the scaler is already installed, make changes through its owning release.

### Helm

For direct OTLP or an existing collector, install the scaler on its own. Find the published version with `helm show chart oci://ghcr.io/kedify/charts/otel-add-on` and set `OTEL_CHART_VERSION` to that version.

```bash
helm upgrade --install kedify-otel-scaler oci://ghcr.io/kedify/charts/otel-add-on \
  --version "${OTEL_CHART_VERSION:?Set OTEL_CHART_VERSION first}" --namespace keda --wait \
  --set otelOperator.enabled=false --set otelCollector.enabled=false
```

To install a collector with Helm, save the values for your [ingestion method](https://docs.kedify.io/how-to/otel-scaler-integrations/) in a file and replace the two `--set` flags with `-f` and the file name.

## 3. Send metrics and configure a workload

Send a scaling metric over OTLP/gRPC to `kedify-otel-scaler.keda.svc:4317`. With an existing collector, point its OTLP exporter at that endpoint. With the Kedify collector, point your application at its receiver or let it scrape the configured target. Use your installation namespace in place of `keda`.

In the workload namespace, create a ScaledObject or ScaledJob with a [`kedify-otel` trigger](https://docs.kedify.io/reference/otel-scaler/#trigger-specification). Set a query for the metric you are sending and a target in that metric’s units. KEDA queries the scaler at `kedify-otel-scaler.keda.svc:4318`. Set `scalerAddress` explicitly if the Service name or namespace differs from KEDA’s default.

## 4. Verify scaling

Check that the scaler Deployment is ready and its Service is present:

```bash
kubectl -n keda get deployment,service -l app.kubernetes.io/instance=kedify-otel-scaler
```

Send enough traffic or load to raise the metric above its target. Check the ScaledObject, its pod autoscaler, and the target’s replicas in the workload namespace. For a ScaledJob, check the Jobs it creates. If scaling is inactive, check that the exporter uses port `4317` and that the metric name and labels match the query. Follow the [sample workload walkthrough](https://docs.kedify.io/how-to/scale-with-otel/) for an end-to-end example.

---
Canonical: https://docs.kedify.io/how-to/otel-scaler-installation/
Source: src/content/docs/how-to/otel-scaler-installation.md
Documentation index: https://docs.kedify.io/llms.txt
