From 0e0ecf7642b4032ee9ca377e5828a9c1201f098f Mon Sep 17 00:00:00 2001 From: "StarsL.cn" Date: Thu, 19 May 2022 03:13:02 +0800 Subject: [PATCH] Update FAQ.md --- docs/FAQ.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/FAQ.md b/docs/FAQ.md index 35b57d3..de3b3ec 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -11,3 +11,12 @@ docker-compose logs --tail=10 -f flask-vue 进入容器,执行: nc -vz {ip} 8500 ``` +### blackbox_exporter监控某个站点有异常,如何debug +- 在blackbox检测该站点的链接末尾加上`&debug=true`,请求即可,例如: +``` +http://10.0.0.26:9115/probe?module=http_2xx&target=https%3A%2F%2Fpayapp.weixin.qq.com&debug=true +``` +- 在blackbox_exporter的启动命令增加参数`--log.level=debug`,即可开启blackbox_exporter的debug日志,systemd方式启动的日志追踪方式: +``` +journalctl -u blackbox_exporter.service -n20 -f +```