Sha256: 57506529936832bbdf484ad934c2b99c60499ba1ca61ad5d08be095d9097b44a

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

module Cassandra
  module Utils
    module Stats
      class Compaction < Utils::CLI::Base

        def command
          'nodetool compactionstats'
        end

        def output
          compaction = stdout.lines.any? { |l| l.include?('Compaction') }
          to_dd(compaction)
        end

        def metric_name
          'cassandra.compaction.running'
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cassandra-utils-0.2.1 lib/cassandra/utils/stats/compaction.rb
cassandra-utils-0.0.1 lib/cassandra/utils/stats/compaction.rb