Amr*_*uth 1 monitoring kubernetes prometheus prometheus-operator prometheus-blackbox-exporter
我正在使用 Prometheus Probe CRD 和 Blackbox 导出器来抓取静态目标。但是,当我检查 Blackbox Exporter 时,我根本没有看到指定的目标被探测。
我能够使用 Blackbox 导出器和 Prometheus 导出器值文件中的additionalScrapeConfigs 来探测目标,但它不能与 Probe CRD 一起使用。
这是我的探针自定义对象配置,
kind: Probe
metadata:
name: probe-crd
namespace: prometheus
spec:
jobName: probe-crd
prober:
url: prometheus-blackbox-exporter:9115
targets:
staticConfig:
static:
- https://www.google.com
Run Code Online (Sandbox Code Playgroud)
Blackbox 导出器服务正在端口 9115 上运行。有人可以让我知道我在这里缺少什么吗?
小智 6
确保您在kind: Prometheus定义中配置了适当的匹配:
probeNamespaceSelector: {}
probeSelector: {}
Run Code Online (Sandbox Code Playgroud)
有关配置这些的更多详细信息,请参见https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md
| 归档时间: |
|
| 查看次数: |
4389 次 |
| 最近记录: |