Skip to content

Instantly share code, notes, and snippets.

@rightfold
Last active August 29, 2015 14:12
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 rightfold/65199128d992df32d52e to your computer and use it in GitHub Desktop.
Save rightfold/65199128d992df32d52e to your computer and use it in GitHub Desktop.
(logger everything {:file "/var/log/hahaha"})
(monitor/ping localhost/ping {:host "localhost", :interval #seconds 1, :timeout #seconds 1})
(monitor/ping example.com/ping/foo {:host "example.com", :interval #seconds 1, :timeout #seconds 1})
(filter/only-errors localhost/ping/errors {:source localhost/ping})
(sink/log localhost/ping/errors/log {:source localhost/ping/errors, :logger everything})
(sink/email localhost/ping/errors/email {:source localhost/ping/errors, :recipient "rightfold@gmail.com"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment