sensu-plugins-cassandra 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84acfe9f8c962b1d35562bcdd4eb4ed1d9e8c3e9
4
- data.tar.gz: 30370fb701fef010e20ae8f0cbaa3aa2c1549c36
3
+ metadata.gz: 925b77d90a0a879862525458336631c6e50b4619
4
+ data.tar.gz: a6e20356742ac90f24f7e58f54f6dac45f7c9513
5
5
  SHA512:
6
- metadata.gz: 35740a2b5174abfe4400ba5064d0061e2c8d6ffcf741c2555ca94de568060f511a4d6b48f0d34e8e56ce73031dd13d8564c95af28380030be7477125477540a9
7
- data.tar.gz: 900b7ce453933c9ce5c2cbbfe8711a8fc0d3d0c5f04e9769b0b9cd7792308581d98065ebda58212730a2455cfa0682b3b5e2ada90f9e67f4d92fdc046732eccc
6
+ metadata.gz: 436a0469608a8b4718f5e7d3d65e35ca177aa30817f54c3919872d72d7a00147fc84e7ed72d71ee95d3f1f3ee3771d12d38e40ea76dc781542d93f49e3d3735f
7
+ data.tar.gz: 90196137f354d5b47446e1f2465856dec2968cdac84cf62aeec57f5e74b4df873873445b4aa3d6c27b6d479c8682496dbc7e8fc4f3881db9e28877af9f89688a
@@ -1,10 +1,15 @@
1
- #Change Log
1
+ # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.1.0] 2017-07-26
9
+ ### Added
10
+ - Test Ruby 2.4.1 (@thomasriley)
11
+ - metrics-cassandra-graphite.rb: Added key cache parsing for newer nodetool version (@jthunt)
12
+
8
13
  ## [1.0.0] - 2016-11-26
9
14
  ### Changed
10
15
  - Update some metrics not shown due to new nodetool version.
@@ -218,6 +218,17 @@ class CassandraMetrics < Sensu::Plugin::Metric::CLI::Graphite
218
218
  output "#{config[:scheme]}.key_cache.requests", m[4], @timestamp
219
219
  end
220
220
 
221
+ # cassandra nodetool v3.0+ Changed the key cache output
222
+ # Key Cache : entries 569669, size 100 MiB, capacity 100 MiB, 35689224 hits, 70654365 requests, 0.505 recent hit rate, 14400 save period in seconds
223
+ # Key Cache : entries 13291, size 7.83 MB, capacity 50 MB, 119444 hits, 139720 requests, 0.855 recent hit rate, 14400 save period in seconds
224
+ if m = line.match(/^Key Cache[^:]+: entries ([0-9]+), size ([-+]?[0-9]*\.?[0-9]+) ([KMGT]i?B|bytes), capacity ([-+]?[0-9]*\.?[0-9]+) ([KMGT]i?B|bytes), ([0-9]+) hits, ([0-9]+) requests, ([-+]?[0-9]*\.?[0-9]+) recent hit rate/)# rubocop:disable all
225
+ output "#{config[:scheme]}.key_cache.size", convert_to_bytes(m[2], m[3]), @timestamp
226
+ output "#{config[:scheme]}.key_cache.capacity", convert_to_bytes(m[4], m[5]), @timestamp
227
+ output "#{config[:scheme]}.key_cache.hits", m[6], @timestamp
228
+ output "#{config[:scheme]}.key_cache.requests", m[7], @timestamp
229
+ output "#{config[:scheme]}.key_cache.hit_rate", m[8], @timestamp
230
+ end
231
+
221
232
  if m = line.match(/^Row Cache[^:]+: size ([0-9]+) \(bytes\), capacity ([0-9]+) \(bytes\), ([0-9]+) hits, ([0-9]+) requests/)# rubocop:disable all
222
233
  output "#{config[:scheme]}.row_cache.size", m[1], @timestamp
223
234
  output "#{config[:scheme]}.row_cache.capacity", m[2], @timestamp
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsCassandra
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-cassandra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-26 00:00:00.000000000 Z
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: english