Release Notes
Announcements
Release Notes
prometheus triggers, enabling scaling based on Prometheus metric data queried by custom PromQL. For full configuration parameters, please refer to KEDA Scalers: Prometheus. This document will provide use cases.istio_requests_total, which can be used to calculate QPS.apiVersion: keda.sh/v1alpha1kind: ScaledObjectmetadata:name: b-scaledobjectnamespace: prodspec:scaleTargetRef:apiVersion: apps/v1kind: Deploymentname: a # Scale for service ApollingInterval: 15minReplicaCount: 1maxReplicaCount: 100triggers:- type: prometheusmetadata:serverAddress: http://monitoring-kube-prometheus-prometheus.monitoring.svc.cluster.local:9090 # Replacing the Prometheus Addressquery: | # Calculate the PromQL of QPS of service Bsum(irate(istio_requests_total{reporter=~"destination",destination_workload_namespace=~"prod",destination_workload=~"b"}[1m]))threshold: "100" # Number of service A replicas = ceil(Service B QPS/100)
prometheus-adapter configuration needs to be changed, and the configuration is centrally managed, not supporting management through CRD. This makes configuration maintenance more cumbersome. In contrast, the KEDA solution only needs to configure ScaledObject or ScaledJob CRDs, allowing various businesses to use different YAML files for maintenance, which is beneficial for configuration maintenance.prometheus-adapter is obscure and hard to understand. It does not allow direct writing of PromQL, requiring learning the prometheus-adapter's configuration syntax, thereby increasing the learning cost. However, KEDA's prometheus configuration is very simple, as the metrics can directly use the syntax queried by PromQL, making it straightforward.prometheus-adapter only supports scaling based on Prometheus monitoring data, whereas for KEDA, Prometheus is just one of many triggers.Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários