【发布时间】:2022-10-25 15:13:51
【问题描述】:
我想知道自己如何在 Blackbox-Exporter 部分下的 Prometheus UI 中获取带有 FQDN 的端点。假设我想探测 https://www.google.de 但我只得到 http://localhost:9115/probe,这是我的示例配置:
- job_name: blackbox-exporter
metrics_path: /probe
static_configs:
- targets: ["https://www.google.de/"]
labels:
module: https_get
relabel_configs:
- source_labels:
- __address__
target_label: __param_target
- source_labels:
- __param_target
target_label: instance
- source_labels:
- module
target_label: __param_module
- target_label: __address__
replacement: localhost:9115
这是 Prometheus UI 中的输出:
有没有办法获得https://www.google.de 而不是http://localhost:9115/probe。我会很感激任何建议。先感谢您。
【问题讨论】:
标签: prometheus prometheus-blackbox-exporter