Skip to content

A demo of using JMX, Spring, and Dash to build an application monitoring dashboard.

Notifications You must be signed in to change notification settings

jerryorr/dash-lightning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

dash-lightning

A demo of using JMX, Spring, and Dash to build an application monitoring dashboard.

Prerequisites

  1. Git
  2. Maven (comes with many Java IDEs)
  3. Java 8 SDK
  4. Create a Dash account. Note that the Push to Dash widgets require a Dash Pro or Dash Business account. A similar effect can be gained by creating REST endpoints similar to those in TomcatStatsController.java and using Fetch from URL widgets instead.

Running the demo

  1. Clone the dash-lightning repository on GitHub: git clone git@github.com:jerryorr/dash-lightning.git
  2. Create a new Dash dashboard.
  3. Create the following widgets in your Dash dashboard:
    1. Custom > Fetch from URL > Custom Speedometer and name it Memory Usage. For Data URL, enter http://[your public IP]:8080/stats/memory/speedometer. You can get your public IP by searching google for "my ip address". You may need to set up port forwarding and open up your firewall, depending on your network/router settings.
    2. Custom > Push to Dash > Basic Value (requires Dash Pro or Business account) and name it Active Sessions. Note the Push URL for later.
    3. Custom > Push to Dash > Custom Chart (requires Dash Pro or Business account) and name it whatever you want. Note the Push URL for later.
  4. Open src/main/resources/application.properties and enter the appropriate Push URL above for dash.chart and dash.sessions. Alternatively, set them as environment variables DASH_CHART_URL and DASH_SESSIONS_URL.
  5. In the root dash-lightning directory, run mvn spring-boot:run.
  6. Open http://localhost:8080/chart and play with the buttons.
  7. Check out your dashboard and see the magic! The Memory Usage widget will update every 30 seconds, the Active Sessions and chart widgets will update immediately.

About

A demo of using JMX, Spring, and Dash to build an application monitoring dashboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages