My custom dashboard calling elasticsearch and updating the last recorded status update from Jenkins
Also monitoring github repo stats
Requirements
Installing on mac (ref: http://www.ryantaylor.cc/running-dashing-on-a-mac/)
- sudo xcode-select --install
- sudo gem install bundler
- sudo gem install dashing
- clone my repo
- change into the directory you cloned the repo
- run bundle install
Installing on Amazon linux or redhat variants
- yum install ruby-devel rubygems gcc g++ bundler
- yum install nodejs --enable-repo=epel
- yum install libxml2-devel libxslt-devel
- clone my repo
- chnage into the directory you cloned the repo
- run bundle install
Modify the widgets and layouts to your liking : -
- Assets — All your images, fonts, and js/coffeescript libraries. Uses Sprockets
- 2Dashboards — One .erb file for each dashboard that contains the layout for the widgets.
- Jobs — Your ruby jobs for fetching data (e.g for calling third party APIs like twitter).
- Lib — Optional ruby files to help out your jobs.
- Public — Static files that you want to serve. A good place for a favicon or a custom 404 page.
- Widgets — All the html/css/coffee for individual widgets.
I have my own job that connects to elasticsearch and gets the results I want. 2 additional libaries need to be added in ruby
- gem install elasticsearch
- gem install hashie
I am also monitoring a public github repo using a community widget. There are many more widgets which you can download and install and get some understanding of the layouts https://github.com/Shopify/dashing/wiki/Additional-Widgets
After modifing to your requiremnet you can start dashing by issuing command "dashing start"