fluent-plugin-deis-graphite 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc8fbb6c8d97e3949db5e6232ece65ae8d624c46
4
- data.tar.gz: 7e552cb88a1a2b260f9d01d9cd1204b135efc87d
3
+ metadata.gz: d09597948ecd533e7b8894e19fa1e03b5dd680c8
4
+ data.tar.gz: 8905acd7439e3b1587365bc1b27854e483d43505
5
5
  SHA512:
6
- metadata.gz: b59f20345aa1907c5fa1823cca9bda874e5901c59b07982ffa61e5f97c9dc976e1ad96150afd17772ed5717c4da16ab4dfbc9216bfeb2fbe345ea504a71cc311
7
- data.tar.gz: 6efd5351c6643ae72f581a1cc9dee81108276684e366d66564005f22f9ce66e180a092942263cdbbdb7bfa3bb7f4fd4e5cba36f92b08a92dec4790d833b7b374
6
+ metadata.gz: f298ee6a4cbe9843100dcc2c51140220d828c1bc8a1d0a558db1662e7719a546e9f1f6992c16b1fad943090d553f068f8bed3c0aacce88934e70b97a3739f814
7
+ data.tar.gz: 5ff4333d8ba00a33fcd6f847f4d73744d2e92267d69d9c56372afb7c973f7e5737b2ffd989b91902e44adac1345d33783d29464ef133fcab97ce9e4ba20e4c35
@@ -2,7 +2,7 @@ require 'fluent/output'
2
2
  require 'metriks'
3
3
  require 'metriks/reporter/graphite'
4
4
  require 'metriks/reporter/logger'
5
- require 'unirest'
5
+ require 'rest_client'
6
6
 
7
7
  module Fluent
8
8
  class DeisGraphiteOutput < Output
@@ -19,7 +19,8 @@ module Fluent
19
19
 
20
20
  #Get the cluster name from Google metadata service
21
21
  begin
22
- response = Unirest.get('http://metadata.google.internal/computeMetadata/v1/instance/attributes/cluster-name',headers:{ "Metadata-Flavor" => "Google"})
22
+ response = RestClient::Request.execute(method: :get, url: 'http://metadata.google.internal/computeMetadata/v1/instance/attributes/cluster-name',
23
+ timeout: 10, headers: { "Metadata-Flavor" => "Google"})
23
24
  if response.code == 200
24
25
  @cluster_name=response.body
25
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-deis-graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Knox
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: unirest
42
+ name: rest_client
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="