Permalink
Browse files

Remove pid from metric source name

Make use a Librato Metric's souce aggregation feature.
  • Loading branch information...
1 parent 4991bb6 commit eb8e8a18bc9158c9740bc764a9c599bb1556e673 @lmarburger lmarburger committed Mar 18, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/bundler_api/metriks.rb
@@ -16,9 +16,8 @@
Socket.gethostname
end
- source = [ app_name, Process.pid ].join(':')
on_error = ->(e) do STDOUT.puts("LibratoMetrics: #{ e.message }") end
- opts = { on_error: on_error, source: source }
+ opts = { on_error: on_error, source: app_name }
opts[:prefix] = prefix if prefix && !prefix.empty?
Metriks::Reporter::LibratoMetrics.new(user, token, opts).start

0 comments on commit eb8e8a1

Please sign in to comment.