如何在 Anthos Metrics for Kubernetes 集群中获取数据
How to get data in Anthos Metrics for Kubernetes clusters
我们有一个项目,里面有两个集群。我们想监控和设置大量参数的警报策略,如 kube_pod_status_phase、kube_pod_container_status_restarts_total 等。我们能够在 Metric Explorer 中看到所有这些参数(前缀为 kubernetes.io/anthos/ ..) 但它不显示任何数据。如果缺少使用 Anthos Metrics 的任何其他配置,任何人都可以指导我们吗?或者,是否有人可以提供使用 Anthos Metrics 的指南或步骤?
注意:我们在两个集群中都配置了 Istio,并且我们也在使用 Workload Identity 功能。
非常感谢任何帮助。
谢谢。
我认为你不想使用这个指标。
Anthos、Anthos GKE 和 GKE 是 3 种不同的 google 产品。
GKE:
is an enterprise-grade platform for containerized applications, including stateful and stateless, AI and ML, Linux and Windows, complex and simple web apps, API, and backend services. Leverage industry-first features like four-way auto-scaling and no-stress management. Optimize GPU and TPU provisioning, use integrated developer tools, and get multi-cluster support from SREs.
is an open hybrid and multi-cloud application platform that enables you to modernize your existing applications, build new ones, and run them anywhere in a secure manner. Built on open source technologies pioneered by Google—including Kubernetes, Istio, and Knative—Anthos enables consistency between on-premises and cloud environments and helps accelerate application development.
is part of Anthos, lets you take advantage of Kubernetes and cloud technology in your data center and in the cloud. You get Google Kubernetes Engine (GKE) experience with quick, managed, and simple installs as well as upgrades validated by Google. And Google Cloud Console gives you a single pane of glass view for managing your clusters across on-premises and cloud environments.
如果您要查看有关 Anthos GKE
定价的信息,您可以阅读:
Anthos is available as a monthly, term-based subscription service. Anthos subscription is required to use Anthos GKE. For pricing please contact sales.
所以要获得 Anthos metrics
,您需要使用 Anthos GKE
,这需要 Anthos subscription
。它会产生更多的成本,有关详细信息,您可能需要联系销售人员。
出于监控目的,您应该检查描述的可能性 here 并选择最适合您的。
不过,最常用的方法是使用Prometheus on GKE and Stackdriver。
此外,在网络上您可以找到许多关于在 GKE 上进行监控的方法,例如 this tutorial。
我们有一个项目,里面有两个集群。我们想监控和设置大量参数的警报策略,如 kube_pod_status_phase、kube_pod_container_status_restarts_total 等。我们能够在 Metric Explorer 中看到所有这些参数(前缀为 kubernetes.io/anthos/ ..) 但它不显示任何数据。如果缺少使用 Anthos Metrics 的任何其他配置,任何人都可以指导我们吗?或者,是否有人可以提供使用 Anthos Metrics 的指南或步骤?
注意:我们在两个集群中都配置了 Istio,并且我们也在使用 Workload Identity 功能。
非常感谢任何帮助。
谢谢。
我认为你不想使用这个指标。
Anthos、Anthos GKE 和 GKE 是 3 种不同的 google 产品。
GKE:
is an enterprise-grade platform for containerized applications, including stateful and stateless, AI and ML, Linux and Windows, complex and simple web apps, API, and backend services. Leverage industry-first features like four-way auto-scaling and no-stress management. Optimize GPU and TPU provisioning, use integrated developer tools, and get multi-cluster support from SREs.
is an open hybrid and multi-cloud application platform that enables you to modernize your existing applications, build new ones, and run them anywhere in a secure manner. Built on open source technologies pioneered by Google—including Kubernetes, Istio, and Knative—Anthos enables consistency between on-premises and cloud environments and helps accelerate application development.
is part of Anthos, lets you take advantage of Kubernetes and cloud technology in your data center and in the cloud. You get Google Kubernetes Engine (GKE) experience with quick, managed, and simple installs as well as upgrades validated by Google. And Google Cloud Console gives you a single pane of glass view for managing your clusters across on-premises and cloud environments.
如果您要查看有关 Anthos GKE
定价的信息,您可以阅读:
Anthos is available as a monthly, term-based subscription service. Anthos subscription is required to use Anthos GKE. For pricing please contact sales.
所以要获得 Anthos metrics
,您需要使用 Anthos GKE
,这需要 Anthos subscription
。它会产生更多的成本,有关详细信息,您可能需要联系销售人员。
出于监控目的,您应该检查描述的可能性 here 并选择最适合您的。
不过,最常用的方法是使用Prometheus on GKE and Stackdriver。
此外,在网络上您可以找到许多关于在 GKE 上进行监控的方法,例如 this tutorial。