Focuslight is a lightning Fast Graphing/Visualization tool, built on RRDTool. It is a Ruby clone of GrowthForecast.
Focuslight is compatible with:
- stored data files
- database (sqlite) and graphs (rrdtool)
- almost all HTTP API requests, except for:
- complex graph creation
export
support
Focuslight is currently lacking some GrowthForecast features:
- MySQL support
- Disabling Subtract
RRDTool and its dependencies must be installed before installing Focuslight.
- RHEL/CentOS
sudo install rrdtool
- Ubuntu
sudo apt-get rrdtool
- OSX
brew install rrdtool
Install focuslight with Ruby 2.0 or later. Execute after installation.
- clone this repository
cd focuslight
- install dependencies:
bundle install
- initialize database:
bundle exec rake init
- execute:
bundle exec foreman start
See http://localhost:5125/
To configure Focuslight, edit the .env
file in the project root directory.
The default configuration is as follows:
DATADIR=./data
PORT=5125
HOST=0.0.0.0
# FRONT_PROXY
# ALLOW_FROM
# 1MIN_METRICS=n
FLOAT_SUPPORT=n
# MYSQL=n
# RRDCACHED=n
# MOUNT=/
- Copy GrowthForecast's
datadir
directory (and its contents) to./data
(or where you specified) - Execute Focuslight
- Merge GrowthForecast's commits after Jan 09, 2014
- disabling subtract
- api endpoint link label
- MySQL support
- RRDCached support
- Front proxies and source address restrictions
- HTTP API mount point support
- Daemonize support
- Installation from rubygems.org
- Add tests, and tests, and more tests
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
The MIT License (MIT)
Copyright (c) 2014- tagomoris
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.