Introduction
NQM is a module for Open-Falcon. It enables the feature of Network Quality Measurement
Makefile
Unit Test
$ go test -v
Configuration
You can modify cfg.example.json
for creating your own configuration file:
{
"agent": {
"agentPushURL": "http://127.0.0.1:1988/v1/push",
"fpingInterval": 60,
"tcppingInterval": 60,
"tcpconnInterval": 60
},
"hbs": {
"RPCServer": "127.0.0.1:6030",
"interval": 60
},
"hostname": "",
"ipAddress": "",
"connectionID": ""
}
Here are the explanations of the fields:
-
agent [Required]
-
hbs [Required]
-
hostname [Optional]
If not set, NQM agent will use the system's hostname.
-
ipAddress [Optional]
If not set, NQM agent will try to get the public IP address of the network interface. If failed, this field will be "UNKNOWN".
-
connectionID [Optional]
If not set, NQM agent will generate a string combined by the hostname and the IP address.
Run
The default configuration file is cfg.json
. You can run with the default configuration:
$ ./nqm
Or, you can specify the configuration file by -c
:
$ ./nqm -c your.config.json