apiVersion:monitoring.coreos.com/v1kind:ServiceMonitormetadata:name:blackbox-exporternamespace:kubesphere-monitoring-systemspec:endpoints:-interval:1mparams:module:-service_tcp_proberpath:/probeport:java-httprelabelings:-action:replacesourceLabels:-__address__targetLabel:__param_target-action:replace # bl...
# 创建systemd服务cat<<"EOF">/etc/systemd/system/blackbox_exporter.service [Unit] Description=blackbox_exporter After=network.target [Service] Type=simple User=prometheus Group=prometheus ExecStart=/opt/prometheus/blackbox_exporter/blackbox_exporter \--config.file"/opt/prometheus/blackbox_exporter/bla...
项目地址:https://github.com/prometheus/blackbox_exporter 一、安装blackbox_exporter wget https://github.com/prometheus/blackbox_exporter/releases/download/v0.25.0/blackbox_exporter-0.25.0.linux-amd64.tar.gz tar xf blackbox_exporter-0.25.0.linux-amd64.tar.gz -C /usr/local/ cd /usr/local/ ...
一、Blackbox Exporter 部署 Exporter Configmap 定义,可以参考下面两个链接 github.com/prometheus/b github.com/prometheus/b 首先得声明一个 Blackbox 的 Deployment,并利用 Configmap 来为 Blackbox 提供配置文件。 Configmap: 参考BlackBox Exporter 的 Github 提供的 示例配置文件 apiVersion: v1 kind: ConfigMap...
本示例通过blackbox_exporter收集http/https(业务接口)、tcp、ping、dns的监控指标,然后将数据收集到prometheus中,配置预警规则,出现警告信息时通过邮件通知相关人员,同时也通过grafana的dashboard导入模板进行可视化。 本示例分为六个部分,即prometheus、grafana、blackbox_exporter部署,prometheus与blackbox_exporter集成,promet...
Prometheus部署及其使用(blackbox+grafana) 简介 Prometheus是一个开源的监控和报警系统,用于收集、存储和查询时间序列数据。 特点 多维度数据模型 灵活的查询语言 支持多种多样的图表和界面展示,比如Grafana等 高效的存储和检索 警报和通知管理等 基础架构 功能组件...
blackbox_exporter服务暴露两个主要的端点: /metrics:暴露自己的度量 /probe:正式查询端点启用了blackbox探测,以Prometheus显示格式返回它们的结果。 除了前面的两个端点之外,/ 服务还提供了有价值的信息,包括执行探测的日志。 blackbox导出器支持通过各种各样的本地协议探测端点,比如TCP、ICMP、DNS、HTTP(版本1和2),...
基本上,Prometheus Blackbox Exporter可以被视为PingDOM、Freshping或Uptime.com的免费简单替代品,用于监控未在Internet上公开的内部端点。 2. Prometheus Blackbox Prometheus Blackbox Exporter的主要目的是测量远程内部和外部端点(HTTP/S、DNS、TCP 和 ICMP)的响应时间,但它提供的不仅仅是这些。
二)、部署Blackbox_exporter Github下载地址 2.1 下载解压包 wget https://github.com/prometheus/blackbox_exporter/releases/download/v0.19.0/blackbox_exporter-0.19.0.linux-amd64.tar.gz tar xf blackbox_exporter-0.19.0.linux-amd64.tar.gz -C /optln-s /opt/blackbox_exporter-0.19.0.linux-amd64...
blackbox-exporter项目地址:https://github.com/prometheus/blackbox_exporter blackbox_exporter 是 Prometheus 官方提供的一个 exporter,可以监控 HTTP、 HTTPS,、DNS、 TCP 、ICMP 等目标实例,从而实现对被监控节点进行监控 和数据采集。promethes调用blackbox_exporter去访问目标监控服务器,实现指标的采集 ...