【问题标题】:get alert when instance is not active in GCE当实例在 GCE 中不活动时获得警报
【发布时间】:2018-09-08 08:51:20
【问题描述】:

对于 GCE 的 Compute Engine,我使用 Stackdriver Monitoring 进行监控和警报。 对于大多数通用指标,如 CPU、磁盘 IO、内存……等都可用,并且可以根据进程名称为这些指标设置警报或死或活。

但是我找不到任何与 GCE 实例本身状态相关的指标。

我的用例非常简单。我想知道实例 ID 是否关闭。 任何建议表示赞赏。 谢谢。

【问题讨论】:

    标签: google-cloud-platform google-compute-engine google-cloud-stackdriver


    【解决方案1】:

    认为实例状态不是monitoring metric;只有instance/uptime 可用。

    (我不知道当它是terminated 时它会返回什么,可能值得一试)。

    但是可以检查带有Uptime Checks 的服务器,然后报告Incident

    可以通过gcloud compute instances describe instance01 获得instance status

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-26
      • 1970-01-01
      • 2019-11-30
      • 1970-01-01
      • 2014-03-23
      • 2021-04-23
      • 2020-05-14
      • 1970-01-01
      相关资源
      最近更新 更多