sensu-plugins-turbine 0.0.3 → 0.0.4

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODFmOTRjOTI1MTQwNDlkOWQ3N2YxZmYyYzYzNDIyNGUwNzg3NGE0NA==
4
+ ZTRjMjk0Mjg2NjhhZTQ5YTg5YjdiNGFkYmNmMTI3MmIyMTI3ZmVmOQ==
5
5
  data.tar.gz: !binary |-
6
- NTI0N2U0YTYyNjI4ZWE5NTY2NWI4NTc4NDM4YzU5NDg4ZjliYmIyZg==
6
+ NGJkOWI4YjNjNTcxNDgxYTUyNmIwOGJmOTZkODc3OGMyOTJkMDQ4NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTE5MTdhNmNlZGNiNTUwMWEzNTdiNjFkZmMyYjAyMDFiY2ViMGYwOGJjZTcw
10
- OWM3NDYzOTc0ODA2OGJhNWU1ZmE2MWE4Nzg1N2Q3MjRjNThlODAxYTk3ZjE5
11
- NzgxZTQxZmQyYTkxNjg2N2FmMTVkOWNkMDIwYWNmZGQ0ODQzODA=
9
+ YzA2YTEwOWRiNzU0MjM4ZTk3YmY0MWE5ZWQ0NzAzYWNjNjQ5ZTI1NDA5Yzhl
10
+ ZDQ2MDhmMmYyNzJiYThlZDE2N2M5YTViYTNkZmQ4OTU3MTAzNTgxMTY3YTZi
11
+ OGI0ODI5MjI3N2Q1MDc3Yzk4MDc0Yjc5YmY5MjUzZmRlYTUyZWE=
12
12
  data.tar.gz: !binary |-
13
- ZDBhZDQ4MjRkZWI4Y2UwN2M4ZTg3NTg2NTEzNWFiNWVkZjgyMzhkODZmNjE5
14
- MjY2Y2NiYjhkYmM4ZTllYjYyNzkwYTBmYTIyNGI5NjM4YjQxOTRhZWViZGUx
15
- YTU2NGFmMzUzOGY3MDgyZjIxMmFhOTA0NTNmYTg3YzIyNzk1ODE=
13
+ ODYyMWNmOGM5ZjU2NDg1NzQxY2ZkZjM1OWM1Y2VhNjc2Y2JmYjZlMzFmZTVh
14
+ OWY0ZTAxN2YxOGUwMzM0YzliODZjYWZhYTI0MmI1ZmQyY2M5NWZiOWNmZGJk
15
+ MWY2YjI5NzUwOGFjMzJmNjcwMjU4NjY1NzlkNjcyMzAyOGIzMWM=
@@ -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] = URI(@url).host
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
@@ -2,7 +2,7 @@ module SensuPluginsTurbine
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 3
5
+ PATCH = 4
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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.3
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-26 00:00:00.000000000 Z
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin