Azure Kubernetes 服务指标与 Prometheus 指标

Azure Kubernetes service Metrics Vs Prometheus Metrics

我们是否对 Azure Kubernetes 服务和 Prometheus 中可用的指标列表进行了比较,只是想知道通过启用 Prometheus 抓取可以获得哪些额外的指标。以下 link 中没有可用的附加信息:

https://azure.microsoft.com/en-in/updates/azure-monitor-for-containers-prometheus-support-for-aks-engines/

谢谢!

Prometheus 是一个 time-series 数据库和监控系统。它在某些方面可以与 Azure Monitor 进行比较。 Prometheus 本身不公开任何指标。它收集指标并通过进一步的工具提供审查 (Grafana) 和反应 (Alert Manager) 的平台。

指标来自节点、平台 (kubelet) 和应用程序。节点公开 CPU、内存、磁盘和其他指标。 Kubelet 公开了 pod 和配置相关的指标。 Ingress Controller 等应用程序公开请求率、success/error 率、处理时间和其他指标。

Azure Monitor 使用默认配置收集节点和 kube 指标。对于应用程序,您可以配置自定义指标并将其提供给 Azure Monitor,但是,Prometheus 已经具有更广泛的 eco-system 指标 exporters that do not require any application modification. For example, you can enable Prometheus based metric export in NGINX Ingress controller by setting controller.metrics.enabled to true when deploying the helm 图表。

因为 Azure Monitor 还可以 scrape Prometheus metrics, you don't have to install Prometheus server in the cluster, just set up metric exporters. However, there are several added benefits to having that server installed albeit to store information for the short term (6h or more). It's more simpler and efficient to work with. Some applications, for example Istio, bundle Prometheus 服务器及其安装程序。