Project

stackeye

0.0
No commit activity in last 3 years
No release in over 3 years
Simple hardware & software stats
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

Stackeye

What is it?

Stackeye is small and lightweight metrics monitoring system. It's meant for projects where longterm and highly detailed metrics is not a priority (p.s. thats what Scout and New Relic are for).

What are the design decisions?

One of the main design aspects of this project was to have as little dependencies as possible (currently just Sinatra). All metric commands are executed locally and all data is stored locally in JSON files.

What does the future hold?

This project will continue to grow overtime but I would love some help from the community to really make it blossom into a great project. The following is a list of future must/nice to have:

  • Metrics
    • Ruby
    • Rails
    • SQLite
    • PostgreSQL
    • Redis
  • Alerts
    • Email
    • SMS
  • OS
    • Windows
    • Mac OS
    • Unix

Web UI

Installation

Add this line to your application's Gemfile:

gem 'stackeye'

And then execute:

$ bundle

Or install it yourself as:

$ gem install stackeye

Usage

Standalone Sinatra app

ruby app.rb

# crontab
*/5 * * * * /bin/bash -l -c 'cd /path/to/project && Stackeye::Metrics::All.set >> /dev/null'
0 0 * * * /bin/bash -l -c 'cd /path/to/project && Stackeye::Tools::Database.truncate >> /dev/null'

Mounted Rails app

# Run initializer generator:
rails generate stackeye:install

# config/routes.rb
mount Stackeye::Application, at: '/stackeye'

# The following could be used if you are using
# the whenever gem to manage your crons.

# config/schedule.rb
every 5.minutes do
  runner 'Stackeye::Metrics::All.set'
end

every :day, at: '12:00 am' do
  runner 'Stackeye::Tools::Database.truncate'
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/drexed/stackeye. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Stackeye project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.