文章 16
评论 3
浏览 252125
基于Prometheus和Blackbox_exporter的PING+TCP+HTPP监控

基于Prometheus和Blackbox_exporter的PING+TCP+HTPP监控

1、Prometheus官网有提供blackbox_exporter的二进制安装包,下载并上传至服务器 2、启动blackbox_exporter(systemctl方式) 解压二进制包,使用./blackbox_exporter --help命令查看blackbox_exporter启动参数 3、配置ping.yml、tcp.yml、http.yml和prometheus.yml 可以使用 `prometheus.yml的file_sd_config参数来实现监控配置分离到单独的文件中,来提高prometheus.yml可读性。 (1)ping.yml (2)tcp.yml -targets: -'<tcp-target-1>:<port>' -'<tcp-target-2>:<port>' labels: job:tcp_monitor (3)http.tml -targets: -'<tcp-target-1>:<port>' -'<tcp-target-2>:<port>' la....

All of us will be better