我们正计划使用Kubernetes水平Pod调度程序,并为此需要安装Custom Metrics API。有人可以告诉其他在kubernetes集群上安装Custom Metrics API的方法吗?
当您将EKS与Prometheus结合使用时,最好的知识来源是AWS文档。
我需要prometheus适配器来注册自定义指标API吗?
是的,你至少需要Prometheus
和普罗米修斯适配器。
Prometheus:
刮除豆荚并存储指标Prometheus metrics adapter:
查询Prometheus
并公开Kubernetes自定义指标API的指标Metrics server:
收集Pod的CPU和内存使用情况并公开Kubernetes资源指标API的指标如果没有Custom Metrics
或External Metrics
,则只能使用基于CPU
或的指标Memory
。
在《使用CloudWatch Container Insights基于自定义Prometheus指标自动扩展Amazon EKS服务》一文中指出:
可以使用
Prometheus Adapter
标题为Fargate上具有自定义指标的Autoscaling EKS的博客文章中概述的,将Prometheus收集的自定义指标暴露给自动缩放器。
在Autoscaling EKS on Fargate with custom metrics
博客您还可以找到一些例子autoscaling based on CPU usage
,autoscaling based on App Mesh traffic
或autoscaling based on HTTP traffic
附加文件
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句