Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s3k/snapstats
It's like newrelic, but better
https://github.com/s3k/snapstats
Last synced: about 2 months ago
JSON representation
It's like newrelic, but better
- Host: GitHub
- URL: https://github.com/s3k/snapstats
- Owner: s3k
- License: mit
- Created: 2015-03-10T19:26:39.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-17T14:49:35.000Z (over 8 years ago)
- Last Synced: 2023-02-28T16:15:39.221Z (almost 2 years ago)
- Language: Ruby
- Size: 792 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# Snapstats
With this gem you can track your user activity (devise feature only), slowest controllers, user browsers and platforms. It's like newrelic, but better.
How to install
1. Add in Gemfile `gem 'snapstats'`
2. In your routes.rb add `mount Snapstats::Engine, :at => '/snap' `
3. Install and start your Redis server (http://redis.io/topics/quickstart)
4. Create `initializers/snapstats.rb` and add params```
Snapstats::EventLogger.start({
:devise_model => { :model => :user, :login_fields => [:email, :username] },
:redis => { :host => 'localhost', :port => 6379 },
:disable_logging => false
})
```Visit http://localhost:3000:/snap to see result
-----
This project rocks and uses MIT-LICENSE