【问题标题】:How to find the status of a container using prometheus?如何使用 prometheus 查找容器的状态?
【发布时间】:2021-05-30 02:17:47
【问题描述】:

我想使用 cadvisor 和 prometheus 获取容器的状态。 我知道我可以使用

time() - container_start_time_seconds{name="container_name"} 

有什么方法可以找到容器的状态吗?

【问题讨论】:

    标签: docker monitoring prometheus cadvisor


    【解决方案1】:

    你可以在 PromQL 上做up

    1 表示向上,0 表示向下。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多