How to integrate typesafe console with akka-scala based application


We are working on a akka-scala based project. We needed to monitor the akka actors related activities and their profile so we integrated typesafe console with our application.

So i am going to tell here how to integrate it with your akka-scala application.

First we need to add a atmos dependency in our project build.sbt as below.


"com.typesafe.atmos" %% "atmos-trace" % "1.3.0"

Add below setting to your build.sbt.


atmosSettings

atmosTestSettings

Now go to your project directory and do sbt update.  It will download the above atmos dependency.

After doing an update run below command.


sbt atoms:run

On the console you will see a message as below.

Starting Atmos and Typesafe Console …
Typesafe Console is available at http://localhost:9900

Typesafe-console UI  can be accessed by pointing to http://localhost:9900 and you will see a screen like this.

typesafe-console-Ui

You can find the related code here on github.

 

 

 

 

 

 

About Piyush Mishra

Software Consutant
This entry was posted in Scala. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s