No commit activity in last 3 years
No release in over 3 years
MetricsSatellite collects your rails application metrics
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 2.12.0

Runtime

 Project Readme

MetricsSatellite

MetricsSatellite collects your rails application metrics.
This gem invokes 5 static metrics tools:

  • Brakeman - A static analysis security vulnerability scanner for Rails
  • Flay - Analyzes code for structural similarities
  • Guideline - Checks that your code is protecting the rule of coding guideline
  • Hotspots - Identify frequently modified files in a git repository
  • RailsBestPractices - A code metric tool for rails projects

Requirements

  • Ruby >= 1.9

Installation

$ gem install metrics_satellite

Usage

MetricsSatellite has 2 features:

  1. Collect today's metrics reports
  2. Post today's metrics summary to GrowthForcast
$ metrics_satellite
Usage: metrics_satellite [options]
        --type=                      (default:       -) 'collect' or 'post'
        --host=                      (default:       -) GrowthForecast host to send report
        --service=                   (default: metrics) GrowthForecast service name
        --section=                   (default: section) GrowthForecast section name
        --git=                       (default:      ./) git repository directory
        --app=                       (default:      ./) application directory
        --reports=                   (default: reports) collected reports directory
        --guideline-abc-complexity=  (default:      15) threshold of ABC complexity
        --guideline-long-line=       (default:      80) threshold of long line
        --guideline-long-method=     (default:      10) threshold of long method
        --hotspots-cutoff=           (default:      10) threshold of change count
        --hotspots-time=             (default:      14) time span of git log target
        --no-brakeman                (default:   false) disable Brakeman
        --no-flay                    (default:   false) disable Flay
        --no-guideline               (default:   false) disable Guideline
        --no-hotspots                (default:   false) disable Hotspots
        --no-rails-best-practices    (default:   false) disable RailsBestPractices

Collect

Collect today's metrics reports.
By default, reports are saved in ./reports/ directory.

$ metrics_satellite --type collect

Post

Post today's metrics summary to your GrowthForecast server(collect should be executed before post).
By default, a summary is posted to http://#{host}/api/metrics/section/#{metrics_type}.

$ metrics_satellite --type post --host growthforecast.example.com