Skip to main content

KEDA Prometheus Scaler

Overview

Kubernetes Event-Driven Autoscaling (KEDA) can scale workloads based on events from various sources, called "Scalers". It has a Prometheus Scaler, that can query metrics from Oodle.

This guide shows you Oodle-specific configurations for KEDA's Prometheus Scaler.

Prerequisites

To connect KEDA to Oodle via Oodle's Prometheus API, you will need the following:

  • OODLE_INSTANCE: Your Oodle instance ID
  • OODLE_API_KEY: Your Oodle API key for authentication

Configuring KEDA to Query Oodle

Set serverAddress and customHeaders for each prometheus trigger of the ScaledObject:

apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata: ...
spec:
...
triggers:
- type: prometheus
metadata:
serverAddress: https://<OODLE_INSTANCE>.api.oodle.ai
customHeaders: "X-API-KEY=<OODLE_API_KEY>,OODLE-INSTANCE=<OODLE_INSTANCE>"
query: |
sum(
rate(
http_requests_total{
namespace="default"
}[2m]
)
) / sum(
http_server_count{
namespace="default"
}
)
threshold: "10"
activationThreshold: "1"

Support

If you have any questions or need assistance with KEDA integration, please contact us via our help chat app located at the bottom-right of the page or by reaching out to support@oodle.ai.