当前位置:网站首页>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
| |
边栏推荐
- Basic knowledge | JS Foundation
- IDEA连接数据库报错
- Construction of defense system for attack and defense exercises part II common strategies for responding to attacks
- Custom palette for ggplot2
- 高薪程序员&面试题精讲系列116之Redis缓存如何实现?怎么发现热key?缓存时可能存在哪些问题?
- 语音信号特征提取流程:输入语音信号-分帧、预加重、加窗、FFT->STFT谱(包括幅度、相位)-对复数取平方值->幅度谱-Mel滤波->梅尔谱-取对数->对数梅尔谱-DCT->FBank->MFCC
- poi导出excle
- Window right click management
- window右键管理
- 将通讯录功能设置为数据库维护,增加用户名和密码
猜你喜欢

云服务器配置ftp、企业官网、数据库等方法

Yarn create vite reports an error 'd:\program' which is neither an internal or external command nor a runnable program or batch file

js来打印1-100间的质数并求总个数优化版

Error in idea connection database

Configuring FTP, enterprise official website, database and other methods for ECS
![[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
![[Kevin's third play in a row] is rust really slower than C? Further analyze queen micro assessment](/img/ac/44e0ecd04fbea5efd39d2cc75dea59.jpg)
[Kevin's third play in a row] is rust really slower than C? Further analyze queen micro assessment

【编译原理】山东大学编译原理复习提纲

进程终止(你真的学会递归了吗?考验你的递归基础)

From 5 seconds to 1 second, the system flies
随机推荐
专业四第二周自测
MySQL
guava 定时任务
Memory barrier store buffer, invalid queue
一个人管理1000台服务器?这款自动化运维工具一定要掌握
Sword finger offer 07 Rebuild binary tree
How can the flower e-commerce 2.0 era go after the breakthrough from 0 to 1?
js求所有水仙花数
What is the difference between volatile and synchronized?
用XGBoost迭代读取数据集
window右键管理
pytorch Default process group is not initialized
[Software Engineering] software engineering review outline of Shandong University
攻防演习防御体系构建之第二篇之应对攻击的常用策略
R 中的 RNA-Seq 数据分析 - 调查数据中的差异表达基因!
(已解决) npm突然报错 Cannot find module ‘D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js‘
Nature、science、cell旗下刊物
R 语言Analyzing wine data
Custom palette for ggplot2
Gérer 1000 serveurs par personne? Cet outil d'automatisation o & M doit être maîtrisé