Sha256: 6f1a5eda03e5ec8db167548b66274404b297fef594acb4c145ecf9dbe454bea1
Contents?: true
Size: 980 Bytes
Versions: 2
Compression:
Stored size: 980 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 60 seconds) 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 |
---|---|
kb-simple-metrics-0.0.13-java | lib/simple/metrics/graphite.rb |
kb-simple-metrics-0.0.12-java | lib/simple/metrics/graphite.rb |