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 +4 -4
- data/lib/fluent/plugin/out_deis-graphite.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d09597948ecd533e7b8894e19fa1e03b5dd680c8
|
4
|
+
data.tar.gz: 8905acd7439e3b1587365bc1b27854e483d43505
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
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 =
|
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.
|
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:
|
42
|
+
name: rest_client
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|