MtrMonitor
Generates a MTR report, uploads the report to S3, and finally parses the report and collects statsd metrics.
Run mtr_monitor as a docker container
docker run -d -v /var/log/mtr:/var/log/mtr -e NAME=<> -e DOMAIN=<> -e MTR_OPTIONS=<> -e S3_BUCKET=<> -e AWS_ACCESS_KEY_ID=<> -e AWS_SECRET_ACCESS_KEY=<> -e SLEEP_TIME=<> renderedtext/mtr_monitor
Generate an MTR report from Ruby
Install mtr_monitor as a gem:
gem 'mtr_monitor'
Invoke mtr generation:
name = "google"
domain = "google.com"
s3_bucket = "my-private-bucket-name" # change this
aws_access_key_id = "<KEY>"
aws_secret_access_key = "<KEY>"
report = MtrMonitor::Report.new(name,
domain,
s3_bucket,
aws_access_key_id,
aws_secret_access_key)
report.generate
report.submit_metrics
License
The gem is available as open source under the terms of the MIT License.