kubernetes - Kubernetes 集群的自定义指标 API 服务安装
问题描述
我们计划使用 Kubernetes 水平 pod 调度程序,为此需要安装自定义指标 API。有人可以告诉在 kubernetes 集群上安装自定义指标 API 的不同方法吗?
解决方案
当您将 EKS 与Prometheus一起使用时,最好的知识来源是 AWS 文档。
我需要普罗米修斯适配器来注册自定义指标 API 吗?
Prometheus
是的,您至少需要Prometheus Adapter。
Prometheus:
抓取 pod 并存储指标Prometheus metrics adapter:
查询Prometheus
和公开 Kubernetes 自定义指标 API 的指标Metrics server:
收集 pod CPU 和内存使用情况并公开 Kubernetes 资源指标 API 的指标
如果没有Custom Metrics
or External Metrics
,您只能使用基于CPU
or的指标Memory
。
Prometheus 收集的自定义指标可以使用标题为在 Fargate 上使用自定义指标自动缩放 EKS
Prometheus Adapter
的博客文章中概述的方法向自动缩放器公开。
在Autoscaling EKS on Fargate with custom metrics
博客中,您还可以找到一些示例autoscaling based on CPU usage
,autoscaling based on App Mesh traffic
或autoscaling based on HTTP traffic
附加文件
推荐阅读
- json - 如何编组和解组 x509.Certificate 到/从 JSON?
- angular - 如何在 recaptcha 中获取最终用户的 IP
- selenium - 在 BrowserStack 中运行多个自动化测试时,第一个测试成功运行,但不会为剩余的会话创建会话
- c - 为什么单链表打印“NULL”?
- java - com.sun.jdi.invocationexception 方法 getOne(id) Hibernate + Spring MVC + JPA Repository
- vba - 如何访问和切换两个非默认联系人文件夹?
- azure-ad-b2c - Azure AD B2C 单点注销
- python - webjobs json数据到熊猫数据框
- powershell - 在戴尔上使用 Microsoft 更新作为源安装音频驱动程序脚本失败
- python-3.x - 按 ID 分组并按每个 ID 计算唯一开始日期。转换回数据框。熊猫