Backstop - Simple HTTP service for submitting metrics to Graphite
We’ve mentioned a couple of Graphite-related projects previously. Jason Dixon and Michael Gorsuch from Heroku have released Backstop, a simple HTTP-to-Graphite proxy to make it simple to send metrics. Using the /publish
method, metrics and annotations can be posted that match any approved prefixes found in the PREFIXES
environment variable, custom
in the following example:
# Send a metric
RestClient.post("https://backstop.example.com/publish/custom",
[{:metric => key, :value => value, :measure_time => Time.now.to_i}].to_json)
# Send an annotation
RestClient.post("https://backstop.example.com/publish/note",
[{:metric => "foobar.release", :value => "v214", :measure_time => Time.now.to_i}].to_json)
Check the README for local usage and instructions for deploying to Heroku.
Discussion
Sign in or Join to comment or subscribe