Arrow Left IconExplore Scalers

Use events from Prometheus to trigger autoscaling with Kedify and KEDA

Book demo !
Prometheus Diagram

Prometheus is an open-source monitoring and alerting system designed for reliability and scalability

It supports service-oriented architectures through a robust data model with time series data identified by metric name and key/value pairs. It collects and stores metrics as time series data.

Featured Use Cases

Scenario:

An e-commerce platform needs to scale its recommendation service based on the number of user interactions to ensure personalized content is delivered quickly.

Prometheus Scaler Usage:

user_interaction_count - a custom metric tracking the number of user interactions with the recommendation engine.

KEDA Usage:

Adapt to changing user activity levels. By monitoring user_interaction_count with KEDA and Prometheus, the platform can dynamically scale the recommendation service in response to changing user interaction levels, ensuring personalized content is served efficiently.
Get Started
                    apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: business-metrics-scaledobject
  namespace: default
spec:
  scaleTargetRef:
    name: recommendation-service
  minReplicaCount: 3
  maxReplicaCount: 25
  triggers:
  - type: prometheus
    metadata:
      serverAddress: http://prometheus.default.svc:9090
      threshold: '1000'
      query: sum(rate(user_interaction_count[5m]))