简体   繁体   English

Azure kubernetes - Prometheus 处理多个应用程序

[英]Azure kubernetes - Prometheus to handle multiple applications

I am planning to deploy 15 different applications initially and would endup with 300+ applications on azure kubernetes and would be using Prometheus and Grafana for monitoring.我计划最初部署 15 个不同的应用程序,最终将在 azure kubernetes 上部署 300 多个应用程序,并将使用 Prometheus 和 Grafana 进行监控。

I have deployed both the Prometheus and Grafana on a separate namespace on the dedicated node.我已将 Prometheus 和 Grafana 部署在专用节点上的单独命名空间上。

How do I enable horizontal pod scaling for Prometheus and Grafana?如何为 Prometheus 和 Grafana 启用水平 pod 扩展?

You can scale your applications based on custom metrics gathered by Prometheus and presented in the Grafana dashboard.您可以根据 Prometheus 收集并在 Grafana 仪表板中显示的自定义指标扩展您的应用程序。

In order to do that you'll need the Prometheus Adapter to implement the custom metrics API, which enables the HorizontalPodAutoscaler controller to retrieve metrics using the custom.metrics.k8s.io API.为此,您需要Prometheus Adapter来实现自定义指标 API,从而使HorizontalPodAutoscaler控制器能够使用custom.metrics.k8s.io API 检索指标。 You can define your own metrics through the adapter's configuration so the HPA would scale based on those stats.您可以通过适配器的配置定义自己的指标,以便 HPA 可以根据这些统计信息进行扩展。

Here you can find a short guide that would get you started. 在这里,您可以找到一个简短的指南,帮助您入门。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM