Enable event-driven autoscaling in Kubernetes with KEDA, OpenTelemetry observability, and Dash0 metrics integration for Prometheus-based scaling.
KEDA (Kubernetes Event-Driven Autoscaling) is a lightweight component that brings event-driven autoscaling to Kubernetes by managing Horizontal Pod Autoscalers behind the scenes. Unlike traditional HPA scaling based on CPU and memory, KEDA can scale workloads based on events and external signals like message queue depth, database job tables, or custom application metrics.
This integration enables comprehensive observability of KEDA's control plane through OpenTelemetry metrics while demonstrating how to use Dash0's Prometheus-compatible API to drive intelligent autoscaling decisions.
For more information, visit the KEDA Project Page.
Transform your Kubernetes autoscaling strategy with event-driven patterns:
This guide shows how to set up KEDA with OpenTelemetry observability and Dash0 integration. For a complete working example, see the Dash0 KEDA demo repository.
Install KEDA with OpenTelemetry metrics enabled:
Create a values file for KEDA:
Install KEDA:
Create a Kubernetes secret with your Dash0 API token:
Create a TriggerAuthentication resource:
Create a ScaledObject that scales based on HTTP request rate from Dash0:
KEDA sends telemetry data to an OpenTelemetry Collector, which forwards it to Dash0.
For production environments, consider using one of these deployment methods:
Helm Chart for The OpenTelemetry Collector
The key requirement is that your collector accepts OTLP/HTTP on port 4318.