Skip to content

Instantly share code, notes, and snippets.

@alq666
Created August 30, 2012 01:22
Show Gist options
  • Save alq666/3521420 to your computer and use it in GitHub Desktop.
Save alq666/3521420 to your computer and use it in GitHub Desktop.
Blog post: full example
#!/bin/bash
echo "I'm busy doing work"
# produce widgets
count = produce_widgets
# Notify @alq and post the event in the Datadog stream
echo "@alq I'm done now and I made $count widgets." | dog event post "$count Widgets produced"
# Post the metric
dog metric post acme.widgets.count $count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment