Skip to content

Instantly share code, notes, and snippets.

@dryman
Created October 24, 2013 20:23
Show Gist options
  • Save dryman/7144358 to your computer and use it in GitHub Desktop.
Save dryman/7144358 to your computer and use it in GitHub Desktop.
[{:url "http://www.yahoo.com/"
:interval 1000 ;; optional
:validator #(re-find #"yahoo" %) ;; optional
:http-options {:timeout 2000 ;; :http-options itself is also optional
:user-agent "Mozilla"}
:graphite-ns "com.yahoo.www" ;; defualt to reverse domain name
:params-fn (map #(hash-map :id %) (iterate inc 0)) ;; programatically control query params
:riemann-tags ["Yahoo" "Homepage"]
}
{:url "http://www.google.com/?search=abc"
:name "search" ;; append to graphite namespace
;; in this case it would be
;; "com.google.www.search"
} ;; only url is required
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment