nqm-agent

command
v3.15.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

README

Introduction

NQM is a module for Open-Falcon. It enables the feature of Network Quality Measurement

Makefile

  • make

    Build the binary

  • make pack

    Pack the necessary files into a tarball for deployment

  • make clean

    Remove the tarball and the excutable binary file

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]

    • PushURL

      The RESTful API URL where NQM agent pushes data to.

  • hbs [Required]

    • RPCServer

      The RPC server where NQM agent gets configurations and probing commands.

    • Interval

      The time interval (seconds) between two queries to RPCServer.

  • 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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL