riemann-tools 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +11 -0
  3. data/.github/workflows/ci.yml +15 -0
  4. data/.github/workflows/codeql-analysis.yml +72 -0
  5. data/.gitignore +2 -0
  6. data/.rubocop.yml +40 -0
  7. data/.ruby-version +1 -0
  8. data/CHANGELOG.md +62 -2
  9. data/README.markdown +8 -24
  10. data/Rakefile +14 -5
  11. data/SECURITY.md +42 -0
  12. data/bin/riemann-apache-status +3 -94
  13. data/bin/riemann-bench +4 -67
  14. data/bin/riemann-cloudant +3 -54
  15. data/bin/riemann-consul +3 -102
  16. data/bin/riemann-dir-files-count +3 -51
  17. data/bin/riemann-dir-space +3 -51
  18. data/bin/riemann-diskstats +3 -91
  19. data/bin/riemann-fd +4 -63
  20. data/bin/riemann-freeswitch +4 -116
  21. data/bin/riemann-haproxy +3 -54
  22. data/bin/riemann-health +3 -344
  23. data/bin/riemann-kvminstance +4 -19
  24. data/bin/riemann-memcached +3 -33
  25. data/bin/riemann-net +3 -105
  26. data/bin/riemann-nginx-status +3 -80
  27. data/bin/riemann-ntp +3 -34
  28. data/bin/riemann-portcheck +3 -37
  29. data/bin/riemann-proc +3 -104
  30. data/bin/riemann-varnish +3 -50
  31. data/bin/riemann-wrapper +75 -0
  32. data/bin/riemann-zookeeper +3 -37
  33. data/lib/riemann/tools/apache_status.rb +107 -0
  34. data/lib/riemann/tools/bench.rb +72 -0
  35. data/lib/riemann/tools/cloudant.rb +57 -0
  36. data/lib/riemann/tools/consul_health.rb +107 -0
  37. data/lib/riemann/tools/dir_files_count.rb +56 -0
  38. data/lib/riemann/tools/dir_space.rb +56 -0
  39. data/lib/riemann/tools/diskstats.rb +94 -0
  40. data/lib/riemann/tools/fd.rb +81 -0
  41. data/lib/riemann/tools/freeswitch.rb +119 -0
  42. data/lib/riemann/tools/haproxy.rb +59 -0
  43. data/lib/riemann/tools/health.rb +478 -0
  44. data/lib/riemann/tools/kvm.rb +23 -0
  45. data/lib/riemann/tools/memcached.rb +38 -0
  46. data/lib/riemann/tools/net.rb +105 -0
  47. data/lib/riemann/tools/nginx_status.rb +86 -0
  48. data/lib/riemann/tools/ntp.rb +42 -0
  49. data/lib/riemann/tools/portcheck.rb +45 -0
  50. data/lib/riemann/tools/proc.rb +109 -0
  51. data/lib/riemann/tools/riemann_client_wrapper.rb +43 -0
  52. data/lib/riemann/tools/uptime_parser.tab.rb +323 -0
  53. data/lib/riemann/tools/varnish.rb +55 -0
  54. data/lib/riemann/tools/version.rb +1 -1
  55. data/lib/riemann/tools/zookeeper.rb +40 -0
  56. data/lib/riemann/tools.rb +31 -52
  57. data/riemann-tools.gemspec +8 -2
  58. data/tools/riemann-aws/{Rakefile.rb → Rakefile} +8 -9
  59. data/tools/riemann-aws/bin/riemann-aws-billing +4 -83
  60. data/tools/riemann-aws/bin/riemann-aws-rds-status +4 -50
  61. data/tools/riemann-aws/bin/riemann-aws-sqs-status +4 -40
  62. data/tools/riemann-aws/bin/riemann-aws-status +4 -67
  63. data/tools/riemann-aws/bin/riemann-elb-metrics +4 -163
  64. data/tools/riemann-aws/bin/riemann-s3-list +4 -78
  65. data/tools/riemann-aws/bin/riemann-s3-status +4 -95
  66. data/tools/riemann-aws/lib/riemann/tools/aws/billing.rb +87 -0
  67. data/tools/riemann-aws/lib/riemann/tools/aws/elb_metrics.rb +163 -0
  68. data/tools/riemann-aws/lib/riemann/tools/aws/rds_status.rb +63 -0
  69. data/tools/riemann-aws/lib/riemann/tools/aws/s3_list.rb +82 -0
  70. data/tools/riemann-aws/lib/riemann/tools/aws/s3_status.rb +97 -0
  71. data/tools/riemann-aws/lib/riemann/tools/aws/sqs_status.rb +45 -0
  72. data/tools/riemann-aws/lib/riemann/tools/aws/status.rb +74 -0
  73. data/tools/riemann-chronos/{Rakefile.rb → Rakefile} +8 -9
  74. data/tools/riemann-chronos/bin/riemann-chronos +3 -139
  75. data/tools/riemann-chronos/lib/riemann/tools/chronos.rb +157 -0
  76. data/tools/riemann-docker/{Rakefile.rb → Rakefile} +7 -8
  77. data/tools/riemann-docker/bin/riemann-docker +4 -213
  78. data/tools/riemann-docker/lib/riemann/tools/docker.rb +200 -0
  79. data/tools/riemann-elasticsearch/{Rakefile.rb → Rakefile} +8 -9
  80. data/tools/riemann-elasticsearch/bin/riemann-elasticsearch +3 -161
  81. data/tools/riemann-elasticsearch/lib/riemann/tools/elasticsearch.rb +170 -0
  82. data/tools/riemann-marathon/{Rakefile.rb → Rakefile} +8 -9
  83. data/tools/riemann-marathon/bin/riemann-marathon +3 -142
  84. data/tools/riemann-marathon/lib/riemann/tools/marathon.rb +159 -0
  85. data/tools/riemann-mesos/{Rakefile.rb → Rakefile} +8 -9
  86. data/tools/riemann-mesos/bin/riemann-mesos +3 -126
  87. data/tools/riemann-mesos/lib/riemann/tools/mesos.rb +142 -0
  88. data/tools/riemann-munin/{Rakefile.rb → Rakefile} +7 -8
  89. data/tools/riemann-munin/bin/riemann-munin +3 -32
  90. data/tools/riemann-munin/lib/riemann/tools/munin.rb +37 -0
  91. data/tools/riemann-rabbitmq/{Rakefile.rb → Rakefile} +8 -9
  92. data/tools/riemann-rabbitmq/bin/riemann-rabbitmq +3 -264
  93. data/tools/riemann-rabbitmq/lib/riemann/tools/rabbitmq.rb +269 -0
  94. data/tools/riemann-riak/{Rakefile.rb → Rakefile} +7 -8
  95. data/tools/riemann-riak/bin/riemann-riak +3 -326
  96. data/tools/riemann-riak/bin/riemann-riak-keys +0 -1
  97. data/tools/riemann-riak/bin/riemann-riak-ring +0 -1
  98. data/tools/riemann-riak/lib/riemann/tools/riak.rb +317 -0
  99. metadata +112 -16
  100. data/.travis.yml +0 -31
  101. data/tools/riemann-riak/riak_status/key_count.erl +0 -13
  102. data/tools/riemann-riak/riak_status/riak_status.rb +0 -152
  103. data/tools/riemann-riak/riak_status/ringready.erl +0 -9
@@ -0,0 +1,317 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'English'
4
+ require 'riemann/tools'
5
+
6
+ # Forwards information on a Riak node to Riemann.
7
+ module Riemann
8
+ module Tools
9
+ class Riak
10
+ include Riemann::Tools
11
+ require 'net/http'
12
+ require 'net/https'
13
+ require 'yajl/json_gem'
14
+
15
+ opt :riak_host, 'Riak host for stats <IP> or SSL http(s)://<IP>', default: Socket.gethostname
16
+ opt :data_dir, 'Riak data directory', default: '/var/lib/riak'
17
+ opt :stats_port, 'Riak HTTP port for stats', default: 8098
18
+ opt :stats_path, 'Riak HTTP stats path', default: '/stats'
19
+ opt :node_name, 'Riak erlang node name', default: "riak@#{Socket.gethostname}"
20
+ opt :cookie, 'Riak cookie to use', default: 'riak'
21
+
22
+ opt :get_50_warning, 'FSM 50% get time warning threshold (ms)', default: 1000
23
+ opt :put_50_warning, 'FSM 50% put time warning threshold (ms)', default: 1000
24
+ opt :get_95_warning, 'FSM 95% get time warning threshold (ms)', default: 2000
25
+ opt :put_95_warning, 'FSM 95% put time warning threshold (ms)', default: 2000
26
+ opt :get_99_warning, 'FSM 99% get time warning threshold (ms)', default: 10_000
27
+ opt :put_99_warning, 'FSM 99% put time warning threshold (ms)', default: 10_000
28
+
29
+ def initialize
30
+ detect_features
31
+
32
+ @httpstatus = true
33
+
34
+ begin
35
+ uri = URI.parse(opts[:riak_host])
36
+ uri.host = opts[:riak_host] if uri.host.nil?
37
+ http = ::Net::HTTP.new(uri.host, opts[:stats_port])
38
+ http.use_ssl = uri.scheme == 'https'
39
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl?
40
+ http.start do |h|
41
+ h.get opts[:stats_path]
42
+ end
43
+ rescue StandardError => _e
44
+ @httpstatus = false
45
+ end
46
+
47
+ # we're going to override the emulator setting to allow users to
48
+ # dynamically input the cookie
49
+ # this is done only once - hopefully it doesn't get overridden.
50
+ ENV['ERL_AFLAGS'] = "-setcookie #{opts[:cookie]}"
51
+ end
52
+
53
+ # Identifies whether escript and riak-admin are installed
54
+ def detect_features
55
+ @escript = true # Whether escript is present on this machine
56
+ @riakadmin = true # Whether riak-admin is present
57
+
58
+ @escript = false if `which escript` =~ /^\s*$/
59
+
60
+ @riakadmin = false if `which riak-admin` =~ /^\s*$/
61
+ end
62
+
63
+ def check_ring
64
+ str = if @escript
65
+ `riemann-riak-ring #{opts[:node_name]}`.chomp
66
+ elsif @riakadmin
67
+ `riak-admin ringready`
68
+ end
69
+
70
+ return if str.nil?
71
+
72
+ if str =~ /^TRUE/
73
+ report(
74
+ host: opts[:riak_host],
75
+ service: 'riak ring',
76
+ state: 'ok',
77
+ description: str,
78
+ )
79
+ else
80
+ report(
81
+ host: opts[:riak_host],
82
+ service: 'riak ring',
83
+ state: 'warning',
84
+ description: str,
85
+ )
86
+ end
87
+ end
88
+
89
+ def check_keys
90
+ keys = `riemann-riak-keys #{opts[:node_name]}`.chomp
91
+ if keys =~ /^\d+$/
92
+ report(
93
+ host: opts[:riak_host],
94
+ service: 'riak keys',
95
+ state: 'ok',
96
+ metric: keys.to_i,
97
+ description: keys,
98
+ )
99
+ else
100
+ report(
101
+ host: opts[:riak_host],
102
+ service: 'riak keys',
103
+ state: 'unknown',
104
+ description: keys,
105
+ )
106
+ end
107
+ end
108
+
109
+ def check_transfers
110
+ str = (`riak-admin transfers` if @riakadmin)
111
+
112
+ return if str.nil?
113
+
114
+ if str =~ /'#{opts[:node_name]}' waiting to handoff (\d+) partitions/
115
+ report(
116
+ host: opts[:riak_host],
117
+ service: 'riak transfers',
118
+ state: 'critical',
119
+ metric: Regexp.last_match(1).to_i,
120
+ description: "waiting to handoff #{Regexp.last_match(1)} partitions",
121
+ )
122
+ else
123
+ report(
124
+ host: opts[:riak_host],
125
+ service: 'riak transfers',
126
+ state: 'ok',
127
+ metric: 0,
128
+ description: 'No pending transfers',
129
+ )
130
+ end
131
+ end
132
+
133
+ def check_disk
134
+ gb = `du -Ls #{opts[:data_dir]}`.split(/\s+/).first.to_i / (1024.0**2)
135
+ report(
136
+ host: opts[:riak_host],
137
+ service: 'riak disk',
138
+ state: 'ok',
139
+ metric: gb,
140
+ description: "#{gb} GB in #{opts[:data_dir]}",
141
+ )
142
+ end
143
+
144
+ # Returns the riak stat for the given fsm type and percentile.
145
+ def fsm_stat(type, property, percentile)
146
+ "node_#{type}_fsm_#{property}_#{percentile == 50 ? 'median' : percentile}"
147
+ end
148
+
149
+ # Returns the alerts state for the given fsm.
150
+ def fsm_state(type, percentile, val)
151
+ limit = opts["#{type}_#{percentile}_warning".to_sym]
152
+ case val
153
+ when 0..limit
154
+ 'ok'
155
+ when limit..limit * 2
156
+ 'warning'
157
+ else
158
+ 'critical'
159
+ end
160
+ end
161
+
162
+ # Get current stats via HTTP
163
+ def stats_http
164
+ begin
165
+ uri = URI.parse(opts[:riak_host])
166
+ uri.host = opts[:riak_host] if uri.host.nil?
167
+ http = ::Net::HTTP.new(uri.host, opts[:stats_port])
168
+ http.use_ssl = uri.scheme == 'https'
169
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl?
170
+ res = http.start do |h|
171
+ h.get opts[:stats_path]
172
+ end
173
+ rescue StandardError => e
174
+ report(
175
+ host: opts[:riak_host],
176
+ service: 'riak',
177
+ state: 'critical',
178
+ description: "error fetching #{opts[:riak_host]}:#{opts[:stats_port]} #{e.class}, #{e.message}",
179
+ )
180
+ raise
181
+ end
182
+
183
+ if res.code.to_i == 200
184
+ JSON.parse(res.body)
185
+ else
186
+ report(
187
+ host: opts[:riak_host],
188
+ service: 'riak',
189
+ state: 'critical',
190
+ description: "stats returned HTTP #{res.code}:\n\n#{res.body}",
191
+ )
192
+ raise "Can't fetch stats via HTTP: #{res.core}:\n\n#{res.body}"
193
+ end
194
+ end
195
+
196
+ # Get current stats via riak-admin
197
+ def stats_riak_admin
198
+ str = `riak-admin status`
199
+ raise 'riak-admin failed' unless $CHILD_STATUS == 0
200
+
201
+ Hash[str.split(/\n/).map { |i| i.split(/ : /) }]
202
+ end
203
+
204
+ # Get current stats as a hash
205
+ def stats
206
+ if @httpstatus
207
+ stats_http
208
+ elsif @riakadmin
209
+ stats_riak_admin
210
+ else
211
+ report(
212
+ host: opts[:riak_host],
213
+ service: 'riak',
214
+ state: 'critical',
215
+ description: 'No mechanism for fetching Riak stats: neither HTTP nor riak-admin available.',
216
+ )
217
+ raise 'No mechanism for fetching Riak stats: neither HTTP nor riak-admin available.'
218
+ end
219
+ end
220
+
221
+ def core_services
222
+ %w[vnode_gets
223
+ vnode_puts
224
+ node_gets
225
+ node_puts
226
+ node_gets_set
227
+ node_puts_set
228
+ read_repairs]
229
+ end
230
+
231
+ def fsm_types
232
+ [{ 'get' => 'time' }, { 'put' => 'time' },
233
+ { 'get' => 'set_objsize' },]
234
+ end
235
+
236
+ def fsm_percentiles
237
+ [50, 95, 99]
238
+ end
239
+
240
+ # Reports current stats to Riemann
241
+ def check_stats
242
+ begin
243
+ stats = self.stats
244
+ rescue StandardError => e
245
+ event = {
246
+ state: 'critical',
247
+ description: e.message,
248
+ host: opts[:riak_host],
249
+ }
250
+ # Report errors
251
+ report(event.merge(service: 'riak'))
252
+ core_services.each do |s|
253
+ report(event.merge(service: "riak #{s}"))
254
+ end
255
+ fsm_types.each do |typespec|
256
+ typespec.each do |type, prop|
257
+ fsm_percentiles.each do |percentile|
258
+ report(event.merge(service: "riak #{type} #{prop} #{percentile}"))
259
+ end
260
+ end
261
+ end
262
+ return
263
+ end
264
+
265
+ # Riak itself
266
+ report(
267
+ host: opts[:riak_host],
268
+ service: 'riak',
269
+ state: 'ok',
270
+ )
271
+
272
+ # Gets/puts/rr
273
+ core_services.each do |s|
274
+ report(
275
+ host: opts[:riak_host],
276
+ service: "riak #{s}",
277
+ state: 'ok',
278
+ metric: stats[s].to_i / 60.0,
279
+ description: "#{stats[s].to_i / 60.0}/sec",
280
+ )
281
+ end
282
+
283
+ # FSMs
284
+ fsm_types.each do |typespec|
285
+ typespec.each do |type, prop|
286
+ fsm_percentiles.each do |percentile|
287
+ val = stats[fsm_stat(type, prop, percentile)].to_i || 0
288
+ val = 0 if val == 'undefined'
289
+ val /= 1000.0 if prop == 'time' # Convert us to ms
290
+ state = if prop == 'time'
291
+ fsm_state(type, percentile, val)
292
+ else
293
+ 'ok'
294
+ end
295
+ report(
296
+ host: opts[:riak_host],
297
+ service: "riak #{type} #{prop} #{percentile}",
298
+ state: state,
299
+ metric: val,
300
+ description: "#{val} ms",
301
+ )
302
+ end
303
+ end
304
+ end
305
+ end
306
+
307
+ def tick
308
+ # This can utterly destroy a cluster, so we disable
309
+ # check_keys
310
+ check_stats
311
+ check_ring
312
+ check_disk
313
+ check_transfers
314
+ end
315
+ end
316
+ end
317
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kingsbury
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-22 00:00:00.000000000 Z
11
+ date: 2022-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -72,6 +72,20 @@ dependencies:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: racc
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
75
89
  - !ruby/object:Gem::Dependency
76
90
  name: rake
77
91
  requirement: !ruby/object:Gem::Requirement
@@ -100,6 +114,48 @@ dependencies:
100
114
  - - ">="
101
115
  - !ruby/object:Gem::Version
102
116
  version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rubocop
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rubocop-rake
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: rubocop-rspec
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
103
159
  description: Collection of utilities which submit events to Riemann,
104
160
  email:
105
161
  - aphyr@aphyr.com
@@ -123,22 +179,27 @@ executables:
123
179
  - riemann-portcheck
124
180
  - riemann-proc
125
181
  - riemann-varnish
182
+ - riemann-wrapper
126
183
  - riemann-zookeeper
127
184
  extensions: []
128
185
  extra_rdoc_files: []
129
186
  files:
130
187
  - ".docker/Dockerfile"
131
188
  - ".docker/publish.sh"
189
+ - ".github/dependabot.yml"
132
190
  - ".github/workflows/ci.yml"
191
+ - ".github/workflows/codeql-analysis.yml"
133
192
  - ".gitignore"
134
193
  - ".rspec"
135
- - ".travis.yml"
194
+ - ".rubocop.yml"
195
+ - ".ruby-version"
136
196
  - CHANGELOG.md
137
197
  - Gemfile
138
198
  - ISSUE_TEMPLATE.md
139
199
  - LICENSE
140
200
  - README.markdown
141
201
  - Rakefile
202
+ - SECURITY.md
142
203
  - bin/riemann-apache-status
143
204
  - bin/riemann-bench
144
205
  - bin/riemann-cloudant
@@ -158,14 +219,37 @@ files:
158
219
  - bin/riemann-portcheck
159
220
  - bin/riemann-proc
160
221
  - bin/riemann-varnish
222
+ - bin/riemann-wrapper
161
223
  - bin/riemann-zookeeper
162
224
  - lib/riemann/tools.rb
225
+ - lib/riemann/tools/apache_status.rb
226
+ - lib/riemann/tools/bench.rb
227
+ - lib/riemann/tools/cloudant.rb
228
+ - lib/riemann/tools/consul_health.rb
229
+ - lib/riemann/tools/dir_files_count.rb
230
+ - lib/riemann/tools/dir_space.rb
231
+ - lib/riemann/tools/diskstats.rb
232
+ - lib/riemann/tools/fd.rb
233
+ - lib/riemann/tools/freeswitch.rb
234
+ - lib/riemann/tools/haproxy.rb
235
+ - lib/riemann/tools/health.rb
236
+ - lib/riemann/tools/kvm.rb
237
+ - lib/riemann/tools/memcached.rb
238
+ - lib/riemann/tools/net.rb
239
+ - lib/riemann/tools/nginx_status.rb
240
+ - lib/riemann/tools/ntp.rb
241
+ - lib/riemann/tools/portcheck.rb
242
+ - lib/riemann/tools/proc.rb
243
+ - lib/riemann/tools/riemann_client_wrapper.rb
244
+ - lib/riemann/tools/uptime_parser.tab.rb
163
245
  - lib/riemann/tools/utils.rb
246
+ - lib/riemann/tools/varnish.rb
164
247
  - lib/riemann/tools/version.rb
248
+ - lib/riemann/tools/zookeeper.rb
165
249
  - riemann-tools.gemspec
166
250
  - tools/riemann-aws/LICENSE
167
251
  - tools/riemann-aws/README.md
168
- - tools/riemann-aws/Rakefile.rb
252
+ - tools/riemann-aws/Rakefile
169
253
  - tools/riemann-aws/bin/riemann-aws-billing
170
254
  - tools/riemann-aws/bin/riemann-aws-rds-status
171
255
  - tools/riemann-aws/bin/riemann-aws-sqs-status
@@ -173,43 +257,55 @@ files:
173
257
  - tools/riemann-aws/bin/riemann-elb-metrics
174
258
  - tools/riemann-aws/bin/riemann-s3-list
175
259
  - tools/riemann-aws/bin/riemann-s3-status
260
+ - tools/riemann-aws/lib/riemann/tools/aws/billing.rb
261
+ - tools/riemann-aws/lib/riemann/tools/aws/elb_metrics.rb
262
+ - tools/riemann-aws/lib/riemann/tools/aws/rds_status.rb
263
+ - tools/riemann-aws/lib/riemann/tools/aws/s3_list.rb
264
+ - tools/riemann-aws/lib/riemann/tools/aws/s3_status.rb
265
+ - tools/riemann-aws/lib/riemann/tools/aws/sqs_status.rb
266
+ - tools/riemann-aws/lib/riemann/tools/aws/status.rb
176
267
  - tools/riemann-chronos/LICENSE
177
268
  - tools/riemann-chronos/README.md
178
- - tools/riemann-chronos/Rakefile.rb
269
+ - tools/riemann-chronos/Rakefile
179
270
  - tools/riemann-chronos/bin/riemann-chronos
271
+ - tools/riemann-chronos/lib/riemann/tools/chronos.rb
180
272
  - tools/riemann-docker/LICENSE
181
273
  - tools/riemann-docker/README.md
182
- - tools/riemann-docker/Rakefile.rb
274
+ - tools/riemann-docker/Rakefile
183
275
  - tools/riemann-docker/bin/riemann-docker
276
+ - tools/riemann-docker/lib/riemann/tools/docker.rb
184
277
  - tools/riemann-elasticsearch/LICENSE
185
278
  - tools/riemann-elasticsearch/README.md
186
- - tools/riemann-elasticsearch/Rakefile.rb
279
+ - tools/riemann-elasticsearch/Rakefile
187
280
  - tools/riemann-elasticsearch/bin/riemann-elasticsearch
281
+ - tools/riemann-elasticsearch/lib/riemann/tools/elasticsearch.rb
188
282
  - tools/riemann-marathon/LICENSE
189
283
  - tools/riemann-marathon/README.md
190
- - tools/riemann-marathon/Rakefile.rb
284
+ - tools/riemann-marathon/Rakefile
191
285
  - tools/riemann-marathon/bin/riemann-marathon
286
+ - tools/riemann-marathon/lib/riemann/tools/marathon.rb
192
287
  - tools/riemann-mesos/LICENSE
193
288
  - tools/riemann-mesos/README.md
194
- - tools/riemann-mesos/Rakefile.rb
289
+ - tools/riemann-mesos/Rakefile
195
290
  - tools/riemann-mesos/bin/riemann-mesos
291
+ - tools/riemann-mesos/lib/riemann/tools/mesos.rb
196
292
  - tools/riemann-munin/LICENSE
197
293
  - tools/riemann-munin/README.md
198
- - tools/riemann-munin/Rakefile.rb
294
+ - tools/riemann-munin/Rakefile
199
295
  - tools/riemann-munin/bin/riemann-munin
296
+ - tools/riemann-munin/lib/riemann/tools/munin.rb
200
297
  - tools/riemann-rabbitmq/LICENSE
201
298
  - tools/riemann-rabbitmq/README.md
202
- - tools/riemann-rabbitmq/Rakefile.rb
299
+ - tools/riemann-rabbitmq/Rakefile
203
300
  - tools/riemann-rabbitmq/bin/riemann-rabbitmq
301
+ - tools/riemann-rabbitmq/lib/riemann/tools/rabbitmq.rb
204
302
  - tools/riemann-riak/LICENSE
205
303
  - tools/riemann-riak/README.md
206
- - tools/riemann-riak/Rakefile.rb
304
+ - tools/riemann-riak/Rakefile
207
305
  - tools/riemann-riak/bin/riemann-riak
208
306
  - tools/riemann-riak/bin/riemann-riak-keys
209
307
  - tools/riemann-riak/bin/riemann-riak-ring
210
- - tools/riemann-riak/riak_status/key_count.erl
211
- - tools/riemann-riak/riak_status/riak_status.rb
212
- - tools/riemann-riak/riak_status/ringready.erl
308
+ - tools/riemann-riak/lib/riemann/tools/riak.rb
213
309
  homepage: https://github.com/aphyr/riemann-tools
214
310
  licenses:
215
311
  - MIT
@@ -226,7 +322,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
322
  requirements:
227
323
  - - ">="
228
324
  - !ruby/object:Gem::Version
229
- version: 2.5.0
325
+ version: 2.6.0
230
326
  required_rubygems_version: !ruby/object:Gem::Requirement
231
327
  requirements:
232
328
  - - ">="
data/.travis.yml DELETED
@@ -1,31 +0,0 @@
1
- sudo: required
2
-
3
- services:
4
- - docker
5
-
6
- addons:
7
- apt:
8
- packages:
9
- - docker-ce
10
-
11
- env:
12
- - EXTRA_TOOL=
13
- - EXTRA_TOOL=riemann-aws
14
- - EXTRA_TOOL=riemann-chronos
15
- - EXTRA_TOOL=riemann-docker
16
- - EXTRA_TOOL=riemann-elasticsearch
17
- - EXTRA_TOOL=riemann-marathon
18
- - EXTRA_TOOL=riemann-mesos
19
- - EXTRA_TOOL=riemann-munin
20
- - EXTRA_TOOL=riemann-rabbitmq
21
- - EXTRA_TOOL=riemann-riak
22
-
23
- before_script:
24
- - docker version
25
-
26
- script:
27
- - .docker/publish.sh
28
-
29
- branches:
30
- only:
31
- - master
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env escript
2
- Process.setproctitle($0)
3
- %%! -name riakstatuscheck -setcookie riak -hidden
4
-
5
- main([]) -> main(["riak@127.0.0.1"]);
6
- main([Node]) ->
7
- io:format("~w\n", [
8
- lists:foldl(
9
- fun({_VNode, Count}, Sum) -> Sum + Count end,
10
- 0,
11
- rpc:call(list_to_atom(Node), riak_kv_bitcask_backend, key_counts, [])
12
- )
13
- ]).