<commit_before>= Readouts

A simple Sinatra, mountable, plugable metric and dashboard framework for getting information you care about for your web app.
This project was inspiried by my work and that of others on this project: https://github.com/primedia/ops. 

== Configuration

The config.ru is a great example of how'd you'd use metrics. You can define really complex metrics to gather and inject into tabs. Everything from your Sidekiq queues to whatever you can think of.

    Readouts::MetricsInfo.configure do |c|
      c.register_metric 'my_metric', {:foo => 'bar'}
      c.register_app_info 'app_name', 'Readouts'
      c.register_app_info 'file_root', Dir[__FILE__]
      c.register_app_info 'github_base_url', 'https://github.com/blasterpal/readouts'
    end


== Assumptions

The revision displayed on the footer will look for a REVISION file which is common for Capistrano deployments.

== Security

You should use a Rails constraint when mounting the app or implement your own auth around the mount point. There is NO security built into to this GEM as it exposes nothing by default other than a blank page and a little info.

== Testing

rake test

== Development and standalone testing

* bundle exec rackup -p 3001
* bundle exec irb -r ./lib/readouts
* bundle exec pry -r ./lib/readouts

Not tested on Windows<commit_msg>more readme updates and attribution<commit_after>= Readouts

A simple Sinatra, mountable, plugable metric and dashboard framework for getting information you care about for your web app.
This project was inspiried by my work and that of others on this project: https://github.com/primedia/ops. 

== Configuration

The config.ru is a great example of how'd you'd use metrics. You can define really complex metrics to gather and inject into tabs. Everything from your Sidekiq queues to whatever you can think of.

    Readouts::MetricsInfo.configure do |c|
      c.register_metric 'my_metric', {:foo => 'bar'}
      c.register_app_info 'app_name', 'Readouts'
      c.register_app_info 'file_root', Dir[__FILE__]
      c.register_app_info 'github_base_url', 'https://github.com/blasterpal/readouts'
    end


== Assumptions

The revision displayed on the footer will look for a REVISION file which is common for Capistrano deployments.

== Security

You should use a Rails constraint when mounting the app or implement your own auth around the mount point. There is NO security built into to this GEM as it exposes nothing by default other than a blank page and a little info.

== Testing

rake test

== Development and standalone testing

* bundle exec rackup -p 3001
* bundle exec irb -r ./lib/readouts
* bundle exec pry -r ./lib/readouts

Not tested on Windows

== Copyright

Copright © 2013 <NAME> and <NAME>
{'fraction_non_alphanumeric': 0.06516199490353113, 'fraction_numerical': 0.004368401892974154, 'mean_word_length': 4.042201834862385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3333922', 'n_tokens_mistral': 780, 'n_tokens_neox': 741, 'n_words': 364}