sensu-plugins-turbine 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/metrics-turbine.rb +6 -1
- data/lib/sensu-plugins-turbine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTRjMjk0Mjg2NjhhZTQ5YTg5YjdiNGFkYmNmMTI3MmIyMTI3ZmVmOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGJkOWI4YjNjNTcxNDgxYTUyNmIwOGJmOTZkODc3OGMyOTJkMDQ4NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzA2YTEwOWRiNzU0MjM4ZTk3YmY0MWE5ZWQ0NzAzYWNjNjQ5ZTI1NDA5Yzhl
|
10
|
+
ZDQ2MDhmMmYyNzJiYThlZDE2N2M5YTViYTNkZmQ4OTU3MTAzNTgxMTY3YTZi
|
11
|
+
OGI0ODI5MjI3N2Q1MDc3Yzk4MDc0Yjc5YmY5MjUzZmRlYTUyZWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODYyMWNmOGM5ZjU2NDg1NzQxY2ZkZjM1OWM1Y2VhNjc2Y2JmYjZlMzFmZTVh
|
14
|
+
OWY0ZTAxN2YxOGUwMzM0YzliODZjYWZhYTI0MmI1ZmQyY2M5NWZiOWNmZGJk
|
15
|
+
MWY2YjI5NzUwOGFjMzJmNjcwMjU4NjY1NzlkNjcyMzAyOGIzMWM=
|
data/bin/metrics-turbine.rb
CHANGED
@@ -42,14 +42,19 @@ class PodsMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
42
42
|
description: 'The pool name requested',
|
43
43
|
required: true
|
44
44
|
|
45
|
+
option :scheme,
|
46
|
+
short: '-s SCHEME',
|
47
|
+
description: 'Graphite storage scheme'
|
48
|
+
|
45
49
|
def initialize
|
46
50
|
super
|
47
51
|
@url = config[:url]
|
48
52
|
@thread_pool = config[:thread_pool]
|
53
|
+
@scheme = config[:scheme]
|
49
54
|
end
|
50
55
|
|
51
56
|
def run
|
52
|
-
config[:scheme] =
|
57
|
+
config[:scheme] = @scheme
|
53
58
|
http = EM::HttpRequest.new(@url, keepalive: true, connect_timeout: 0, inactivity_timeout: 0)
|
54
59
|
info = %w(rollingCountSuccess currentActiveCount currentConcurrentExecutionCount rollingMaxConcurrentExecutionCount rollingCountBadRequests)
|
55
60
|
EventMachine.run do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-turbine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mickfeech and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|