前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Prometheus:探针检测

Prometheus:探针检测

作者头像
用户5760343
发布2020-01-15 16:07:35
2.2K0
发布2020-01-15 16:07:35
举报
文章被收录于专栏:sktjsktj

1、黑盒:blockbox exporter

image.png

blockbox用来探测HTTP HTTPS DNS TCP ICMP

2、配置文件 prober.yml modules: http_2xx: prober: http timeout: 5s http: valid_status_codes: [] method: GET icmp_check: prober: icmp timeout: 5s icmp: preferred_ip_protocol: "ip4" dns_examplecom_check: prober: dns dns: preferred_ip_protocol: "ip4" query_name: "www.example.com" dns_tcp_example: prober: dns dns: transport_protocol: "tcp" # defaults to "udp" preferred_ip_protocol: "ip4" # defaults to "ip6" query_name: "www.prometheus.io"

3、启动 blackbox_exporter --config.file="/etc/prober/prober.yml"

port 9115

4、prometheus配置

image.png

http_probes.json

image.png

关键指标:probe_http_status_code 200 probe_success 1

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • blockbox用来探测HTTP HTTPS DNS TCP ICMP
  • port 9115
  • http_probes.json
  • 关键指标:probe_http_status_code 200 probe_success 1
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档