Skip to content

Commit cc169a0

Browse files
[OTAGENT-634] Instructions on autoscaling in DDOT Gateway (#32664)
* [OTAGENT-634] Guide on autoscaling in DDOT Gateway * Update content/en/opentelemetry/setup/ddot_collector/install/kubernetes_gateway.md Co-authored-by: DeForest Richards <56796055+drichards-87@users.noreply.github.com> --------- Co-authored-by: DeForest Richards <56796055+drichards-87@users.noreply.github.com>
1 parent add1c3a commit cc169a0

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

content/en/opentelemetry/setup/ddot_collector/install/kubernetes_gateway.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,45 @@ otelAgentGateway:
374374
config: | <YOUR CONFIG>
375375
```
376376

377+
### Enable Autoscaling with Horizontal Pod Autoscaler (HPA)
378+
379+
The DDOT Collector gateway supports autoscaling with the Kubernetes Horizontal Pod Autoscaler (HPA) feature. To enable HPA, configure `otelAgentGateway.autoscaling`.
380+
381+
```yaml
382+
# values.yaml
383+
targetSystem: "linux"
384+
agents:
385+
enabled: false
386+
clusterAgent:
387+
enabled: false
388+
otelAgentGateway:
389+
enabled: true
390+
ports:
391+
- containerPort: "4317"
392+
name: "otel-grpc"
393+
config: | <YOUR CONFIG>
394+
replicas: 4 # 4 replicas to begin with and HPA may override it based on the metrics
395+
autoscaling:
396+
enabled: true
397+
minReplicas: 2
398+
maxReplicas: 10
399+
metrics:
400+
# Aim for high CPU utilization for higher throughput
401+
- type: Resource
402+
resource:
403+
name: cpu
404+
target:
405+
type: Utilization
406+
averageUtilization: 80
407+
behavior:
408+
scaleUp:
409+
stabilizationWindowSeconds: 30
410+
scaleDown:
411+
stabilizationWindowSeconds: 60
412+
```
413+
414+
You can use resource metrics (CPU or memory), custom metrics (Kubernetes Pod or Object), or external metrics as autoscaling inputs. For resource metrics, ensure that the [Kubernetes metrics server][9] is running in your cluster. For custom or external metrics, consider configuring the [Datadog Cluster Agent metrics provider][10].
415+
377416
### Deploying a multi-layer gateway
378417

379418
For advanced scenarios, you can deploy multiple gateway layers to create a processing chain. To do this, deploy each layer as a separate Helm release, starting from the final layer and working backward.
@@ -516,3 +555,5 @@ For advanced scenarios, you can deploy multiple gateway layers to create a proce
516555
[6]: https://opentelemetry.io/docs/collector/deployment/gateway/
517556
[7]: https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/configtls
518557
[8]: http://github.com/DataDog/helm-charts/blob/main/charts/datadog/README.md
558+
[9]: http://github.com/kubernetes-sigs/metrics-server
559+
[10]: /containers/guide/cluster_agent_autoscaling_metrics/?tab=helm

0 commit comments

Comments
 (0)