Skip to content
a particularly poorly named client for statsd in scala
Scala
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
build.sbt

README.md

statacus

    ___       ___       ___       ___       ___       ___       ___       ___
   /\  \     /\  \     /\  \     /\  \     /\  \     /\  \     /\__\     /\  \
  /::\  \    \:\  \   /::\  \    \:\  \   /::\  \   /::\  \   /:/ _/_   /::\  \
 /\:\:\__\   /::\__\ /::\:\__\   /::\__\ /::\:\__\ /:/\:\__\ /:/_/\__\ /\:\:\__\
 \:\:\/__/  /:/\/__/ \/\::/  /  /:/\/__/ \/\::/  / \:\ \/__/ \:\/:/  / \:\:\/__/
  \::/  /   \/__/      /:/  /   \/__/      /:/  /   \:\__\    \::/  /   \::/  /
   \/__/               \/__/               \/__/     \/__/     \/__/     \/__/

A scalaly statsd client for netting those wee stats collecting in the wind, or learn to instrument by playing the counter.

usage

import statatus._

val stats = Stats("localhost") /*defaults to port 8125*/

// increment fun by 100
stats inc("fun", 100)

// collect a sampling of 25% of a set keys incrementing by 6
stats.count(by = 6, ratio = 0.25)("login", "logout", "logcabin")

// if it moves, time it
stats.time("bunny", 320)

// create a reusable counter
val cntr = stats.counter("cars.red")
when(redCarPasses) cntr.inc

thanks http://www.network-science.de/ascii/

Doug Tangren (softprops) 2011

Something went wrong with that request. Please try again.