在两个方向上运行IPERF测试并将结果发送给Graphite
iperf_graphite的Python项目详细描述
运行双向iperf3测试并将结果发送给graphite。 结果包括bps和重传
安装
pip install iperf_graphite
用法
$ iperf_graphite --help usage: iperf_graphite [-h][-f CONFIG_FILE][-V] send iperf stats to graphite optional arguments: -h, --help show this help message and exit -f CONFIG_FILE Config file -V, --version show program's version
配置文件示例:
# Configuration for iperf-graphite.py # Graphite details carbon_server: myserver.example.net carbon_port: 2003 data_point_prefix: "test.iperf"# Iperf options iperf_port: 5201 iperf_test_duration: 10# Sleep time (seconds) between tests sleep: 0# List of tests to iterate over tests: - src: 192.0.2.1 dst: 192.0.2.2 - src: 1.2.3.4 dst: 5.6.7.8