KCNA · Question #69
Which tools enable Kubernetes HorizontalPodAutoscalers to use custom, application-generated metrics to trigger scaling events?
The correct answer is A. Prometheus and the prometheus-adapter. Prometheus, combined with the prometheus-adapter, allows Kubernetes HorizontalPodAutoscalers (HPAs) to access and utilize custom metrics for dynamic scaling decisions.
Question
Which tools enable Kubernetes HorizontalPodAutoscalers to use custom, application-generated metrics to trigger scaling events?
Options
- APrometheus and the prometheus-adapter.
- BGraylog and graylog-autoscaler metrics.
- CGraylog and the kubernetes-adapter.
- DGrafana and Prometheus.
How the community answered
(29 responses)- A90% (26)
- B7% (2)
- C3% (1)
Why each option
Prometheus, combined with the prometheus-adapter, allows Kubernetes HorizontalPodAutoscalers (HPAs) to access and utilize custom metrics for dynamic scaling decisions.
Prometheus is a popular monitoring system used to collect metrics, and the prometheus-adapter exposes these custom metrics to the Kubernetes API in a format that the HorizontalPodAutoscaler can consume. This enables HPAs to scale Pods based on application-specific metrics not natively supported by Kubernetes.
Graylog is primarily a log management platform, and `graylog-autoscaler metrics` is not a standard Kubernetes component for exposing custom metrics to HPAs.
While Graylog is a logging tool, the `kubernetes-adapter` specifically designed for custom metrics typically refers to the Prometheus adapter, not a Graylog integration for HPA custom metrics.
Grafana is a visualization tool that works with Prometheus, but it does not directly expose metrics to the Kubernetes HPA API; the prometheus-adapter fulfills that role.
Concept tested: Kubernetes HPA custom metrics integration
Source: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-custom-metrics
Topics
Community Discussion
No community discussion yet for this question.