|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 2022-04-01 13:09  yanqi_vip  阅读(60)  评论(0)    收藏  举报

导航