telemetry-bench works as an AMQP message sender, sending collectd simulated metrics JSON.
go get -u github.com/infrawatch/telemetry-bench/...
cd $GOPATH/src/github.com/infrawatch/telemetry-bench
dep ensure -v -vendor-only
go build cmd/telemetry-bench.go
docker pull quay.io/infrawatch/telemetry-bench
docker run -it --rm quay.io/infrawatch/telemetry-bench telemetry-bench
usage: ./telemetry-bench (options) ampq://...
options:
-mode simulate|limit
Mode:
simulate: simulate collectd and send metrics
limit: Limit test to identify how many AMQP messages in a 10 sec.
-hosts int
Simulate hosts (default 1)
-interval int
Interval (sec) (default 1)
-metrics int
Metrics per one AMQP messages (default 1)
-messages int
Messages per interval (default 1)
-send int
How many metrics sent (default 1, -1 means forever)
-timepermesgs
Show verbose messages for each given messages (default -1 = no message)
# Send one json data from one host metric to amqp
$ ./telemetry-bench amqp://localhost:5672/foo
# Simulate sending json data 3 times, each from 2 hosts with 5sec
# intervals, (total 2 * 3 = 6 json messages are sent)
$ ./telemetry-bench -hosts 2 -interval 5 -metrics 1 -send 3 amqp://localhost:5672/foo
- Tomofumi Hayashi (s1061123)
- (Oct 2019) Chris Sibbitt