Skip to content

Instantly share code, notes, and snippets.

@dfilppi
Created March 7, 2013 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfilppi/5112362 to your computer and use it in GitHub Desktop.
Save dfilppi/5112362 to your computer and use it in GitHub Desktop.
nimbus monitor snippet
def metrics=[]
def process="${context.serviceDirectory}/stat.sh ${clientPort}".execute()
process.in.eachLine{line->
metrics.add line
}
[ "Packets Received":metrics[0],"Packets Sent":metrics[1],"Outstanding Requests":metrics[2]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment