当前位置:网站首页>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
| |
边栏推荐
- [Kevin's third play in a row] is rust really slower than C? Further analyze queen micro assessment
- Apifox learning
- uview的安装和功能
- File 与 MultipartFile概述
- Guava scheduled task
- Error in idea connection database
- YOLOv6又快又准的目标检测框架 已开源
- Idea方法模板
- Configuring FTP, enterprise official website, database and other methods for ECS
- mysql关于自增和不能为空
猜你喜欢
![[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

用XGBoost迭代读取数据集

(已解决) MINet 进行测试时报错如下 raise NotImplementedError

(resolved) NPM suddenly reports an error cannot find module 'd:\program files\nodejs\node_ modules\npm\bin\npm-cli. js‘

Interviewer: you use Lombok every day. What is its principle? I can't answer

正斜杠反斜杠的由来

Interviewer: please introduce cache penetration, cache null value, cache avalanche and cache breakdown, which are easy to understand

IDEA连接数据库报错

File 与 MultipartFile概述

One person manages 1000 servers? This automatic operation and maintenance tool must be mastered
随机推荐
js中如何查看程序运行时间(计时器)
Interviewer: do you have any plan to request a lot of data that does not exist in redis to destroy the database?
Nature、science、cell旗下刊物
From 5 seconds to 1 second, the system flies
ggplot2的自定义调色板
Sword finger offer 07 Rebuild binary tree
R 语言 基于关联规则与聚类分析的消费行为统计
延时队列`DelayQueue`
语音信号特征提取流程:输入语音信号-分帧、预加重、加窗、FFT->STFT谱(包括幅度、相位)-对复数取平方值->幅度谱-Mel滤波->梅尔谱-取对数->对数梅尔谱-DCT->FBank->MFCC
RNA SEQ data analysis in R - investigate differentially expressed genes in the data!
guava 教程收集一些案例慢慢写 google工具类
MySQL
apifox学习
C# 请问怎么在更新数据库时候调用line与rows
POI export excle
Talk about Domain Driven Design
How to implement redis cache of highly paid programmers & interview questions series 116? How do I find a hot key? What are the possible problems with caching?
Bean拷贝详解
Guava scheduled task
Apifox learning