【问题标题】:Prometheus: Check if an HTTP server is upPrometheus:检查 HTTP 服务器是否已启动
【发布时间】:2019-11-12 23:06:19
【问题描述】:

是否可以在 Prometheus 中添加一个 HTTP 服务器作为目标并仅检查响应是否为 200(OK),或者我是否必须公开一个以 Prometheus 格式返回一些数据的端点?

谢谢。

【问题讨论】:

    标签: prometheus


    【解决方案1】:

    以下是 Google 对此的评价:https://www.robustperception.io/checking-for-http-200s-with-the-blackbox-exporter (o:

    更严重的是,Prometheus 的 Blackbox Exporter 旨在用于此类任务(不仅是 HTTP,还包括 DNS、TCP、ICMP),除了响应状态(例如内容、标头、SSL、证书)。这是 Blackbox Exporter 附带的示例配置,涵盖了其中的许多:https://github.com/prometheus/blackbox_exporter/blob/master/example.yml

    【讨论】:

      猜你喜欢
      • 2012-02-17
      • 1970-01-01
      • 2017-03-16
      • 1970-01-01
      • 2011-07-10
      • 1970-01-01
      • 1970-01-01
      • 2022-01-25
      • 1970-01-01
      相关资源
      最近更新 更多