百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
B

blackbox_exporter

> 云原生
开源

Blackbox 探测器导出器

5.8K stars0 点赞7 次浏览
访问官网GitHub

工具介绍

Blackbox 探测器导出器

Blackbox exporter

[][circleci] [][quay] [][hub]

blackbox exporter 支持通过 HTTP、HTTPS、DNS、TCP、ICMP 和 gRPC 对端点进行黑盒探测。

运行本软件

从二进制文件运行

从发布页面下载最适合的二进制文件

然后运行:

./blackbox_exporter <flags>

使用 Docker 镜像

注意:你可能需要在 Docker 配置中启用 ipv6

bash
Docker run --rm \
  -p 9115/tcp \
  --name blackbox_exporter \
  -v $(pwd):/config \
  quay.io/prometheus/blackbox-exporter:latest --config.file=/config/blackbox.yml

检查结果

访问 http://localhost:9115/probe?target=google.com&module=http_2xx 将返回针对 google.com 的 HTTP 探测指标。probe_success 指标表示探测是否成功。添加 debug=true 参数 将返回该探测的调试信息。

该探测还会返回计时指标,用于测量探测目标所需的时间。

例如,你可以了解探测超时使用了多少。这很有用, 因为 Prometheus 的超时时间永远不能超过抓取间隔。

probe_duration_seconds / probe_timeout_seconds

此查询将返回剩余时间的比率。

有关导出器自身运行情况的指标可在端点 http://localhost:9115/metrics.

TLS 和基本认证

Blackbox Exporter 支持 TLS 和基本认证。这可以更好地控制各种 HTTP 端点。

要使用 TLS 和/或基本认证,你需要使用 --web.config.file 参数传递一个配置文件。该文件的格式已有说明。

请注意,TLS 和基本认证设置会影响所有 HTTP 端点:用于抓取的 /metrics、用于探测的 /probe,以及 Web UI。

控制探测日志的日志级别

blackbox_exporter h

in the exporter-toolkit repository.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goblackbox-exportericmpprometheusprometheus-exporter

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类云原生
定价开源

> 相关工具

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,