Sha256: bf571be6508507228c043323d7293238e2e8cbc025fa8fcc8ec63290d32ba754
Contents?: true
Size: 540 Bytes
Versions: 3
Compression:
Stored size: 540 Bytes
Contents
require 'graphite-api' module Ring class SQA class Graphite ROOT = "nlnog.ring_sqa.#{CFG.afi}" def add records records.each do |record| hash = { "#{ROOT}.#{record.peer}.state" => record.result } if record.result == 'success' hash["#{ROOT}.#{record.peer}.latency"] = record.latency end @client.metrics hash, record.time end end private def initialize server=CFG.graphite @client = GraphiteAPI.new graphite: server end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ring-sqa-0.3.1 | lib/ring/sqa/graphite.rb |
ring-sqa-0.3.0 | lib/ring/sqa/graphite.rb |
ring-sqa-0.2.2 | lib/ring/sqa/graphite.rb |