OCI Dashboard with Smashing/Dashing

By | May 13, 2019

Who does not like a good (real-time) dashboard? Well I do! Last week I had to deliver a hands-on workshop for the Oracle Cloud Infrastructure, so why not make a cool dashboard to monitor the progress of the hands-on lab đŸ™‚

It turned out not very difficult to do. I based my dashboard on the Smashing framework. This was simple to setup and design a nice looking dashboard page with. Just follow the 4 step installation instructions from the smashing website. The Smashing framework supports out-of-the-box some cool widgets and you can download many many more. I settled for mainly for the “meter” widget. This widget can show a number and charts this on a graph based on a min and max value. These widget can very easily be updated by a simple http call.

I wrote a simple python module to update the meter widget and to query OCI information. In my case mainly the sum of a certain object, like the amount of users, instances, load balancers, VCNs and more. I query this data using the OCI Python SDK.

The current dashboard was mainly designed specifically for my hands-on lab, but I will write some more modules in the future to cover more of the OCI elements.

You can find my code and sample smashing dashboard (oci.erb) here:

Just update the smashing.py file with your Smashing Key and the URL of where smashing is running. Place the oci.erb file in your smashing dashboard directory and you should be all set.

4 thoughts on “OCI Dashboard with Smashing/Dashing

  1. Martin

    RTeally cool. Which OS did you use? OL7 with RVM / Ruby installed first?

    1. richard Post author

      Thanks! I used ubuntu and just followed the easy 4 step install instructions from smashing đŸ™‚

  2. Pingback: OCI Dashboard with Smashing/Dashing and Kafka | Igfasouza.com

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.