Skip to content

parth-patil/JvmStatsD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JvmStatsD

Periodically send JVM stats to StatsD server

Following is sample usage of the library

import akka.actor.ActorSystem
import scala.concurrent.ExecutionContext.Implicits.global

class SampleUsage {
  def main(args: Array[String]) {
    val actorSystem = ActorSystem("statsd-actor-system")
    val statsD = new StatsD(
      context = actorSystem,
      host = "localhost",
      port = 8192)

    val statsSender = new StatsSender(statsD)

    // Create the JvmStatsTask that publishes stats every 10 secs
    statsSender.addTask(new JvmStatsTask, 10)
  }
}

About

Periodically send JVM stats to StatsD server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages