MtrMonitor
Generates a MTR report, uploads the report to S3, and finally parses the report and collects statsd metrics.
Installation
Add this line to your application's Gemfile:
gem 'mtr_monitor'
Or install it on your system:
gem install mtr_monitor
Usage
Generate an MTR report from the CLI
export AWS_ACCESS_KEY_ID=<XXX>
export AWS_SECRET_ACCESS_KEY=<YYY>
mtr_report --name "test" --domain "google.com" --bucket "bucket-aaa"
Generate an MTR report from Ruby
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.