|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

 

 

posted on   yanqi_vip  阅读(49)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示