Prometheus 无法访问远程导出器

Prometheus 无法访问远程导出器

我正在尝试使用 Prometheus 作为监控层,使用 Avahi 作为 DNS 服务来建立物联网网络。我在本地主机上有 Prometheus 跟踪节点导出器,但无法访问另一台主机上的节点导出器或 prometheus-mqtt-exporter。当我运行时prometheuslog.level=debug我看到了消息

msg="Scrape failed" err="Get \"http://raspberrypi.local:9100/metrics\": dial tcp: lookup raspberrypi.local on 192.168.0.1:53: no such host"

我可以从 prometheus 主机 ping raspberrypi.local,并可以/metrics使用 检索页面curl,但 Prometheus 似乎无法解析 Pi 的 IP 地址。

我在 FreeBSD 13.2-RELEASE 上运行 Prometheus 2.43.0,Pi 运行操作系统 5.10.103,prometheus-node-exporter 报告版本 0.17.0,prometheus-mqtt-exporter 无法报告版本号。

相关内容