|NO.Z.00329|——————————|CloudNative|——|KuberNetes&运维.V47|——|黑盒监控.v02|blackbox.v02|使用|
一、黑盒监控的使用
### --- 访问百度的HTTP探测的指标,
~~~ 该probe_success 指标指示是否探头得手。
~~~ 添加debug=true参数将返回该探针的调试信息
### --- 查看service的地址:
[root@k8s-master01 blackbox]# kubectl get svc -n monitoring -l app=blackbox-exporter
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
blackbox-exporter ClusterIP 10.105.13.82 <none> 9115/TCP 37m
### --- 访问百度HTTP探测的指标
~~~ 注:这个就是采集到的它的信息
~~~ 可以把target的标签换成自己的业务应用的地址,就可以监控到自己的业务应用,
~~~ 而且可以换成TCP的。
~~~ 换成TCP,就可以检测IP地址+端口的形式
[root@k8s-master01 blackbox]# curl "http://10.105.13.82:9115/probe?target=baidu.com&module=http_2xx"
# HELP probe_dns_lookup_time_seconds Returns the time taken for probe dns lookup in seconds
# TYPE probe_dns_lookup_time_seconds gauge
probe_dns_lookup_time_seconds 0.107067562
# HELP probe_duration_seconds Returns how long the probe took to complete in seconds
# TYPE probe_duration_seconds gauge
probe_duration_seconds 0.185994127
二、实例地址:
### --- 实例地址:
https://github.com/prometheus/blackbox_exporter
https://github.com/prometheus/blackbox_exporter/blob/master/blackbox.yml
https://grafana.com/grafana/dashboards/5345
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
——W.S.Landor
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通