Description
The purpose and use-cases of the new component
KEDA is an autoscaling system for Kubernetes that allows you to use various metrics backends (integrated through a scaler
) as the source of metrics for autoscaling. There are over 60 scalers including Prometheus and other metrics backends. The OTEL Collector already exposes metrics to poll for in various exporters (ex. prometheus
exporter). This exporter would implement the KEDA Scaler Interface and would allow an instance of an OTEL Collector to serve as the metrics backend for the OTEL Collector scaler.
Example configuration for the component
endpoint: url that exporter exposes
maxAge: oldest metrics returned to endpoint queries
timeWindowOffset: offset window for metrics queries
Telemetry data types supported
Metrics
Code Owner(s)
No response
Sponsor (optional)
No response
Additional context
This component would need to hold some metrics in memory (the exact metrics could either be configured in the component's config or alternatively could be determined based on the creation/existence of some CRD) and then return the values to queries based on that internal representation. This is a model similar to other pull exporters. It would also be responsible for converting from the internal pdata
metrics format to the format expected by KEDA.