librato-metrics-taps 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 733e9fa30670ae136a4e48449f6f31f37c7d305e
4
+ data.tar.gz: 567d1545148a99222bc662d5a7f11822a39e27e9
5
+ SHA512:
6
+ metadata.gz: 2d636a85986a909aa9fd6ad720240cb03a70bad5658a6971712deb39a20efb04ef9ba116466938e69b9cc2b9c5e5290a8204868d8fc94dc09d83934fd8dd4e21
7
+ data.tar.gz: 1027f1e2d5b2ae9638d81f6fe97262477f51399962aaf2ee618064524b181a2267e773561f78a52ec98c8f29071cee688729036b1c400aad7464a49c4a3f7285
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- librato-metrics-taps (0.3.6)
4
+ librato-metrics-taps (0.3.7)
5
5
  jmx4r (= 0.1.4)
6
6
  jruby-openssl (= 0.8.5)
7
7
  librato-metrics (~> 1.0.4)
data/README.md CHANGED
@@ -3,6 +3,10 @@
3
3
  Collection of helper scripts and library routines to tap into external
4
4
  metric sources and pump those metrics into Librato's Metric Service.
5
5
 
6
+ With these you can monitor JVM services, like Cassandra, and build monitoring dashboards:
7
+
8
+ ![Cassandra Dashboard](https://s3.amazonaws.com/librato_images/Github/Selection_292.png)
9
+
6
10
  ## librato-metrics-tap-jmxbeans
7
11
 
8
12
  The *JMX Beans* tap script will connect to a JMX service and pull
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.7
@@ -0,0 +1,30 @@
1
+ # Set of attributes to grab for each CF.
2
+ # TODO: Add comment description for each
3
+ #
4
+ ---
5
+ BloomFilterDiskSpaceUsed: counter
6
+ BloomFilterFalsePositives: counter
7
+ BloomFilterFalseRatio:
8
+ CompressionRatio:
9
+ DroppableTombstoneRatio:
10
+ LiveDiskSpaceUsed:
11
+ LiveSSTableCount:
12
+ MaxRowSize:
13
+ MeanRowSize:
14
+ MinRowSize:
15
+ MaximumCompactionThreshold:
16
+ MinimumCompactionThreshold:
17
+ MemtableColumnsCount: counter
18
+ MemtableDataSize:
19
+ MemtableSwitchCount: counter
20
+ PendingTasks:
21
+ ReadCount: counter
22
+ RecentBloomFilterFalsePositives:
23
+ RecentBloomFilterFalseRatio:
24
+ RecentReadLatencyMicros:
25
+ RecentWriteLatencyMicros:
26
+ TotalDiskSpaceUsed: counter
27
+ TotalReadLatencyMicros: counter
28
+ TotalWriteLatencyMicros: counter
29
+ UnleveledSSTables:
30
+ WriteCount: counter
@@ -0,0 +1,146 @@
1
+ # Set of non-CF specific Cassandra JMX knobs
2
+ #
3
+ ---
4
+ org.apache.cassandra.db:type=BatchlogManager:
5
+ TotalBatchesReplayed: counter
6
+ org.apache.cassandra.db:type=Caches:
7
+ KeyCacheCapacityInBytes:
8
+ KeyCacheEntries:
9
+ KeyCacheHits: counter
10
+ KeyCacheRecentHitRate:
11
+ KeyCacheRequests: counter
12
+ KeyCacheSize:
13
+ RowCacheCapacityInBytes:
14
+ RowCacheEntries:
15
+ RowCacheHits: counter
16
+ RowCacheRecentHitRate:
17
+ RowCacheRequests:
18
+ RowCacheSize:
19
+ org.apache.cassandra.db:type=Commitlog:
20
+ ActiveCount:
21
+ CompletedTasks: counter
22
+ PendingTasks:
23
+ TotalCommitlogSize:
24
+ org.apache.cassandra.db:type=CompactionManager:
25
+ CompletedTasks: counter
26
+ PendingTasks:
27
+ TotalBytesCompacted: counter
28
+ TotalCompactionsCompleted: counter
29
+ org.apache.cassandra.db:type=StorageProxy:
30
+ HintsInProgress:
31
+ RecentRangeLatencyMicros:
32
+ RecentReadLatencyMicros:
33
+ RecentWriteLatencyMicros:
34
+ TotalRangeLatencyMicros: counter
35
+ TotalReadLatencyMicros: counter
36
+ TotalWriteLatencyMicros: counter
37
+ TotalHints: counter
38
+ RangeOperations: counter
39
+ ReadOperations: counter
40
+ WriteOperations: counter
41
+ org.apache.cassandra.db:type=StorageService:
42
+ Load:
43
+ CompactionThroughputMbPerSec:
44
+ ExceptionCount: counter
45
+ StreamThroughputMbPerSec:
46
+ org.apache.cassandra.internal:type=AntiEntropyStage:
47
+ ActiveCount:
48
+ CompletedTasks: counter
49
+ PendingTasks:
50
+ CurrentlyBlockedTasks:
51
+ TotalBlockedTasks: counter
52
+ org.apache.cassandra.internal:type=FlushWriter:
53
+ ActiveCount:
54
+ CompletedTasks: counter
55
+ PendingTasks:
56
+ CurrentlyBlockedTasks:
57
+ TotalBlockedTasks: counter
58
+ org.apache.cassandra.internal:type=GossipStage:
59
+ ActiveCount:
60
+ CompletedTasks: counter
61
+ PendingTasks:
62
+ CurrentlyBlockedTasks:
63
+ TotalBlockedTasks: counter
64
+ org.apache.cassandra.internal:type=HintedHandoff:
65
+ ActiveCount:
66
+ CompletedTasks: counter
67
+ PendingTasks:
68
+ CurrentlyBlockedTasks:
69
+ TotalBlockedTasks: counter
70
+ org.apache.cassandra.internal:type=InternalResponseStage:
71
+ ActiveCount:
72
+ CompletedTasks: counter
73
+ PendingTasks:
74
+ CurrentlyBlockedTasks:
75
+ TotalBlockedTasks: counter
76
+ org.apache.cassandra.internal:type=MemtablePostFlusher:
77
+ ActiveCount:
78
+ CompletedTasks: counter
79
+ PendingTasks:
80
+ CurrentlyBlockedTasks:
81
+ TotalBlockedTasks: counter
82
+ org.apache.cassandra.internal:type=MigrationStage:
83
+ ActiveCount:
84
+ CompletedTasks: counter
85
+ PendingTasks:
86
+ CurrentlyBlockedTasks:
87
+ TotalBlockedTasks: counter
88
+ org.apache.cassandra.internal:type=MiscStage:
89
+ ActiveCount:
90
+ CompletedTasks: counter
91
+ PendingTasks:
92
+ CurrentlyBlockedTasks:
93
+ TotalBlockedTasks: counter
94
+ org.apache.cassandra.internal:type=PendingRangeCalculator:
95
+ ActiveCount:
96
+ CompletedTasks: counter
97
+ PendingTasks:
98
+ CurrentlyBlockedTasks:
99
+ TotalBlockedTasks: counter
100
+ org.apache.cassandra.internal:type=StreamStage:
101
+ ActiveCount:
102
+ CompletedTasks: counter
103
+ PendingTasks:
104
+ CurrentlyBlockedTasks:
105
+ TotalBlockedTasks: counter
106
+ org.apache.cassandra.request:type=MutationStage:
107
+ ActiveCount:
108
+ CompletedTasks: counter
109
+ PendingTasks:
110
+ CurrentlyBlockedTasks:
111
+ TotalBlockedTasks: counter
112
+ org.apache.cassandra.request:type=ReadRepairStage:
113
+ ActiveCount:
114
+ CompletedTasks: counter
115
+ PendingTasks:
116
+ CurrentlyBlockedTasks:
117
+ TotalBlockedTasks: counter
118
+ org.apache.cassandra.request:type=ReadStage:
119
+ ActiveCount:
120
+ CompletedTasks: counter
121
+ PendingTasks:
122
+ CurrentlyBlockedTasks:
123
+ TotalBlockedTasks: counter
124
+ org.apache.cassandra.request:type=ReplicateOnWriteStage:
125
+ ActiveCount:
126
+ CompletedTasks: counter
127
+ PendingTasks:
128
+ CurrentlyBlockedTasks:
129
+ TotalBlockedTasks: counter
130
+ org.apache.cassandra.request:type=RequestResponseStage:
131
+ ActiveCount:
132
+ CompletedTasks: counter
133
+ PendingTasks:
134
+ CurrentlyBlockedTasks:
135
+ TotalBlockedTasks: counter
136
+ org.apache.cassandra.net:type=MessagingService:
137
+ RecentTotalTimouts:
138
+ TotalTimeouts: counter
139
+ org.apache.cassandra.metrics:type=ClientRequestMetrics,name=ReadTimeouts:
140
+ Count: counter
141
+ org.apache.cassandra.metrics:type=ClientRequestMetrics,name=ReadUnavailables:
142
+ Count: counter
143
+ org.apache.cassandra.metrics:type=ClientRequestMetrics,name=WriteTimeouts:
144
+ Count: counter
145
+ org.apache.cassandra.metrics:type=ClientRequestMetrics,name=WriteUnavailables:
146
+ Count: counter
@@ -5,7 +5,7 @@ module Librato
5
5
  class << self
6
6
  def connect!(host = 'localhost', port = 3000, username = nil, password = nil)
7
7
  begin
8
- ::JMX::MBean.establish_connection :host => host, :port => port, :username => username, :pasword => password
8
+ ::JMX::MBean.establish_connection :host => host, :port => port, :username => username, :password => password
9
9
  rescue => err
10
10
  return false
11
11
  end
@@ -132,7 +132,7 @@ module Librato
132
132
  end
133
133
 
134
134
  def metric_name(bean_name, attr_name)
135
- "#{bean_name.gsub('=', ':').gsub(/[, ]/, '_')}::#{attr_name}"
135
+ "#{bean_name.gsub('=', ':').gsub(/[, ]/, '_').gsub(/[^A-Za-z0-9\.:\-_]/, '_')}::#{attr_name}"
136
136
  end
137
137
  end
138
138
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librato-metrics-taps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
5
- prerelease:
4
+ version: 0.3.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Librato, Inc.
@@ -18,13 +17,11 @@ dependencies:
18
17
  - - '='
19
18
  - !ruby/object:Gem::Version
20
19
  version: 0.1.4
21
- none: false
22
20
  requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
22
  - - '='
25
23
  - !ruby/object:Gem::Version
26
24
  version: 0.1.4
27
- none: false
28
25
  prerelease: false
29
26
  type: :runtime
30
27
  - !ruby/object:Gem::Dependency
@@ -34,13 +31,11 @@ dependencies:
34
31
  - - ~>
35
32
  - !ruby/object:Gem::Version
36
33
  version: 1.0.4
37
- none: false
38
34
  requirement: !ruby/object:Gem::Requirement
39
35
  requirements:
40
36
  - - ~>
41
37
  - !ruby/object:Gem::Version
42
38
  version: 1.0.4
43
- none: false
44
39
  prerelease: false
45
40
  type: :runtime
46
41
  - !ruby/object:Gem::Dependency
@@ -50,13 +45,11 @@ dependencies:
50
45
  - - '='
51
46
  - !ruby/object:Gem::Version
52
47
  version: 1.16.2
53
- none: false
54
48
  requirement: !ruby/object:Gem::Requirement
55
49
  requirements:
56
50
  - - '='
57
51
  - !ruby/object:Gem::Version
58
52
  version: 1.16.2
59
- none: false
60
53
  prerelease: false
61
54
  type: :runtime
62
55
  - !ruby/object:Gem::Dependency
@@ -66,49 +59,39 @@ dependencies:
66
59
  - - '='
67
60
  - !ruby/object:Gem::Version
68
61
  version: 0.8.5
69
- none: false
70
62
  requirement: !ruby/object:Gem::Requirement
71
63
  requirements:
72
64
  - - '='
73
65
  - !ruby/object:Gem::Version
74
66
  version: 0.8.5
75
- none: false
76
67
  prerelease: false
77
68
  type: :runtime
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rake
80
71
  version_requirements: !ruby/object:Gem::Requirement
81
72
  requirements:
82
- - - ! '>='
73
+ - - '>='
83
74
  - !ruby/object:Gem::Version
84
- version: !binary |-
85
- MA==
86
- none: false
75
+ version: '0'
87
76
  requirement: !ruby/object:Gem::Requirement
88
77
  requirements:
89
- - - ! '>='
78
+ - - '>='
90
79
  - !ruby/object:Gem::Version
91
- version: !binary |-
92
- MA==
93
- none: false
80
+ version: '0'
94
81
  prerelease: false
95
82
  type: :development
96
83
  - !ruby/object:Gem::Dependency
97
84
  name: shoulda
98
85
  version_requirements: !ruby/object:Gem::Requirement
99
86
  requirements:
100
- - - ! '>='
87
+ - - '>='
101
88
  - !ruby/object:Gem::Version
102
- version: !binary |-
103
- MA==
104
- none: false
89
+ version: '0'
105
90
  requirement: !ruby/object:Gem::Requirement
106
91
  requirements:
107
- - - ! '>='
92
+ - - '>='
108
93
  - !ruby/object:Gem::Version
109
- version: !binary |-
110
- MA==
111
- none: false
94
+ version: '0'
112
95
  prerelease: false
113
96
  type: :development
114
97
  - !ruby/object:Gem::Dependency
@@ -118,13 +101,11 @@ dependencies:
118
101
  - - ~>
119
102
  - !ruby/object:Gem::Version
120
103
  version: '3.12'
121
- none: false
122
104
  requirement: !ruby/object:Gem::Requirement
123
105
  requirements:
124
106
  - - ~>
125
107
  - !ruby/object:Gem::Version
126
108
  version: '3.12'
127
- none: false
128
109
  prerelease: false
129
110
  type: :development
130
111
  description: Taps for extracting metrics data and publishing to Librato Metrics
@@ -147,10 +128,12 @@ files:
147
128
  - examples/cassandra/cfstats-0_8_1.yaml
148
129
  - examples/cassandra/cfstats-0_8_8.yaml
149
130
  - examples/cassandra/cfstats-1_1_6.yaml
131
+ - examples/cassandra/cfstats-1_2_5.yaml
150
132
  - examples/cassandra/tpstats-0_7_6-2.yaml
151
133
  - examples/cassandra/tpstats-0_8_1.yaml
152
134
  - examples/cassandra/tpstats-0_8_8.yaml
153
135
  - examples/cassandra/tpstats-1_1_6.yaml
136
+ - examples/cassandra/tpstats-1_2_5.yaml
154
137
  - examples/java-lang.yaml
155
138
  - lib/librato-metrics-taps.rb
156
139
  - lib/librato/metrics/taps.rb
@@ -164,35 +147,26 @@ files:
164
147
  homepage: http://github.com/librato/librato-metrics-taps
165
148
  licenses:
166
149
  - MIT
150
+ metadata: {}
167
151
  post_install_message:
168
152
  rdoc_options: []
169
153
  require_paths:
170
154
  - lib
171
155
  required_ruby_version: !ruby/object:Gem::Requirement
172
156
  requirements:
173
- - - ! '>='
157
+ - - '>='
174
158
  - !ruby/object:Gem::Version
175
- segments:
176
- - 0
177
- version: !binary |-
178
- MA==
179
- hash: 2
180
- none: false
159
+ version: '0'
181
160
  required_rubygems_version: !ruby/object:Gem::Requirement
182
161
  requirements:
183
- - - ! '>='
162
+ - - '>='
184
163
  - !ruby/object:Gem::Version
185
- segments:
186
- - 0
187
- version: !binary |-
188
- MA==
189
- hash: 2
190
- none: false
164
+ version: '0'
191
165
  requirements: []
192
166
  rubyforge_project:
193
- rubygems_version: 1.8.24
167
+ rubygems_version: 2.1.9
194
168
  signing_key:
195
- specification_version: 3
169
+ specification_version: 4
196
170
  summary: Librato Metrics Taps
197
171
  test_files:
198
172
  - test/helper.rb