当前位置:网站首页>Testing network connectivity with the blackbox exporter
Testing network connectivity with the blackbox exporter
2022-06-27 07:34:00 【Chenshaowen's website】
If you need to monitor two hosts 、 Network conditions between the host and external services , Then you can try the Blackbox Exporter.
1. install Blackbox
- Download binary package
| |
- Clean the installation package
| |
- newly build Systemd service
| |
Add the following :
[Unit]Description=blackbox_exporterAfter=network.target[Service]Restart=on-failureExecStart=/usr/bin/blackbox_exporter \ --config.file=/etc/prometheus/blackbox.ymlRestart=on-failure[Install]WantedBy=multi-user.target- Start the service
| |
- View running status
| |
2. Test the external access connectivity of the host
blackbox_exporter Default is local 9115 Port exposure service .
actually , By joining together URL The way , We can test the connectivity of the host to any service , Here is an example , Just provide target、module Parameters can be , among target Indicates the goal of the test ,module Represents the module for testing :
Browser access http://BLACKBOX_HOST_IP:9115/probe?target=google.com&module=http_2xx, Need to put BLACKBOX_HOST_IP Replace with host IP.
| |
In comments , There is a very detailed description of these indicators ,DNS Time delay 、 Respond to 、 Agreements, etc .
3. Prometheus To configure
next , We can get Prometheus Grasp regularly blackbox Indicators of . Here are the related configuration files , Need to put BLACKBOX_HOST_IP Replace with blackbox_exporter Deployment host IP Address .
| |
4. To configure Grafana panel
What we use here is https://grafana.com/grafana/dashboards/13587 panel .
Slightly adjusted , Finally, it looks like the following figure :

5. Possible problems
5.1 probe_http_status_code The status code is always 0
blackbox_exporter The default is ipv6 Stack , You need to manually specify ipv4.
Edit profile /etc/prometheus/blackbox.yml Appoint ipv4 Stack .
| |
then , Restart the service :
| |
5.2 Grafana Can't find grafana-piechart-panel
- Installing a plug-in
| |
- Specify the path of the plug-in in the configuration file
vim /usr/local/grafana/conf/defaults.ini[plugin.piechart]path = /var/lib/grafana/plugins/grafana-piechart-panel- restart Grafana
| |
边栏推荐
- Speech signal processing - concept (I): time spectrum (horizontal axis: time; vertical axis: amplitude), spectrum (horizontal axis: frequency; vertical axis: amplitude) -- Fourier transform -- > time
- OpenCV怎么下载?OpenCV下载后怎么配置?
- Manim math engine
- boundvalueops和opsforvalue区别
- 磁选机是什么?
- 专业四第二周自测
- JDBC参数化查询示例
- 一个人管理1000台服务器?这款自动化运维工具一定要掌握
- uview的安装和功能
- mysql关于自增和不能为空
猜你喜欢
![Speech signal processing - concept (II): amplitude spectrum (STFT spectrum), Mel spectrum [the deep learning of speech mainly uses amplitude spectrum and Mel spectrum] [extracted with librosa or torch](/img/b3/6c8d9fc66e2a4dbdc0dd40179266d3.png)
Speech signal processing - concept (II): amplitude spectrum (STFT spectrum), Mel spectrum [the deep learning of speech mainly uses amplitude spectrum and Mel spectrum] [extracted with librosa or torch

Configuring FTP, enterprise official website, database and other methods for ECS

Interviewer: do you have any plan to request a lot of data that does not exist in redis to destroy the database?
![[graduation season] graduation is the new beginning of your life journey. Are you ready](/img/4e/aa763455da974d9576a31568fc6625.jpg)
[graduation season] graduation is the new beginning of your life journey. Are you ready

DMU software syntax highlighting VIM setting -- Learning Notes 6

Stream常用操作以及原理探索

Park and unpark in unsafe

MySQL

mssql如何使用语句导出并删除多表数据

正斜杠反斜杠的由来
随机推荐
uview的安装和功能
1-4 进制表示与转换
js输出形状
The first part of the construction of the defense system of attack and defense exercise is the introduction and the four stages of Defense
MySQL
SQL考勤查询间隔一小时
延时队列`DelayQueue`
请问如何将数据从oracle导入fastDFS?
在线文本数字识别列表求和工具
R language calculates Spearman correlation coefficient in parallel to speed up the construction of co occurrence network
window右键管理
apifox学习
正斜杠反斜杠的由来
高薪程序员&面试题精讲系列116之Redis缓存如何实现?怎么发现热key?缓存时可能存在哪些问题?
boundvalueops和opsforvalue区别
一個人管理1000臺服務器?這款自動化運維工具一定要掌握
Bean拷贝详解
R 语言 基于关联规则与聚类分析的消费行为统计
The interviewer of a large front-line factory asked: do you really understand e-commerce order development?
【编译原理】山东大学编译原理复习提纲