Sha256: c47d94a76fb72424286e7cce509534b055ccf98ba7d13e6788ab33db83c4557d

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

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

        def command
          'nodetool compactionstats'
        end

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

        def metric_name
          'cassandra.cleanup.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/cleanup.rb
cassandra-utils-0.0.1 lib/cassandra/utils/stats/cleanup.rb