我可以使用Google Cloud Monitoring来监视发生故障的Container/Pod吗? [英] Can I use Google Cloud Monitoring to monitor a failing Container / Pod?

查看:54
本文介绍了我可以使用Google Cloud Monitoring来监视发生故障的Container/Pod吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试用 Google Cloud Monitoring -我正在努力使用现成的指标来创建警报,以了解何时Container或Pod发生错误,是否计划外等等.监视我的应用程序是否正常的真正基础知识.使用Prometheus进行配置确实很容易.

Trying out Google Cloud Monitoring - I am struggling to create an alert using out-of-the-box metrics for when a Container or Pod has errors, is unschedulable, and so on. Really basic stuff to monitor if my application(s) are healthy. Something that is really easy to configure using Prometheus.

有一种名为"GKE容器"的资源类型,但其中大多数包含诸如CPU和内存使用率之类的基本内容.还有一种资源类型称为"Kubernetes Pod",但其中仅包含标有 kubernetes.io/anthos 的内容,并且所有度量标准/时间序列均为空.

There is a resource type called "GKE Container" but it mostly contains basic stuff like CPU and memory usage. There is also a resource type called "Kubernetes Pod" but that one only contains stuff tagged with kubernetes.io/anthos and all the metrics / time series are empty.

这是否是Google的自觉遗漏-即我需要自己部署一些东西?我对Google Cloud Monitoring的希望是,我不需要部署&配置与Prometheus一样多的东西-毕竟这是一项付费服务​​.

Is this a conscious omission on Google's part - i.e. I need to deploy something myself? My hopes for Google Cloud Monitoring was that I didn't need to deploy & configure as much stuff as I did with Prometheus - it's a paid service after all.

推荐答案

当前,GKE默认不导出此数据.您可以使用Kube-state-metric以Prometheus格式导出​​数据. https://github.com/kubernetes/kube-state-metrics 有办法提供很多这样的指标.您可以使用Prometheus-to-stackdriver导出器提取此数据信息Stackdriver.您可以点击以下链接: https://cloud.google.com/monitoring/kubernetes-引擎/普罗米修斯.

Currently, GKE does not export this data by default. You can use Kube-state-metric to export data in Prometheus format. https://github.com/kubernetes/kube-state-metrics has way to provide a lot of such metrics. You can ingest this data info Stackdriver using Prometheus-to-stackdriver exporter. You can follow this link: https://cloud.google.com/monitoring/kubernetes-engine/prometheus.

这篇关于我可以使用Google Cloud Monitoring来监视发生故障的Container/Pod吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆