Sha256: 664b0b9e4b7e074595c7f4609e1971eddd838ca67cb7a708b781d16072921b57
Contents?: true
Size: 975 Bytes
Versions: 2
Compression:
Stored size: 975 Bytes
Contents
require 'java/metrics-graphite-2.1.1' java_import com.yammer.metrics.reporting.GraphiteReporter module Simple module Metrics module Graphite # Enable reporting directly to graphite # # @param [String] server_name The hostname of the graphite server. # @param [Int] server_port The port that graphite is running on. # @param [String] prefix The prefix to store the data under, eg: `services.development`. # The class name, or name of the application will be appended: # `services.development.teatime` # @param [Int] interval_in_seconds Time interval for sending to graphite in seconds. # (Defaults to 1 sec) def enable_graphite_reporter(server_name, server_port, prefix, interval_in_seconds = 60) GraphiteReporter.enable(interval_in_seconds, TimeUnit::SECONDS, server_name, server_port, prefix) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple-metrics-0.0.12-java | lib/simple/metrics/graphite.rb |
simple-metrics-0.0.11-java | lib/simple/metrics/graphite.rb |