fluent-plugin-newrelic 1.1.1 → 1.1.3
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 +4 -4
- data/DEVELOPER.md +9 -0
- data/lib/fluent/plugin/out_newrelic.rb +4 -3
- data/lib/newrelic-fluentd-output/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ee73ce175fb282dc265d9fb7f6e7fd77070e34239a62296c66317dcb8ab1ffc
|
4
|
+
data.tar.gz: 9c68570a7caf8dd62385f0d7077fc21009d8e37436d340a1b47469071d1ff884
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 854481935c1b820b9c59faaed047d9d1aec1ed28cf39c4dc38271bcc9ad1028c61e1aa6b56e1ee6de35e1ac995a45254ebec92298a56f4312068bd667248a40a
|
7
|
+
data.tar.gz: 90c99413df6d425e7d6339abfe6615ee168368d0729722957ca05e779c2459542f2b0c01cec4a9acc3aa424ff2a07026316033594aec71bfa3a404b32da82c9c
|
data/DEVELOPER.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Developing the plugin
|
2
2
|
|
3
|
+
## Set up
|
4
|
+
|
5
|
+
As of September 2019, some supported versions of Fluentd uses Ruby 2.1.10p492, so you'll want to use that to
|
6
|
+
develop and test with.
|
7
|
+
|
8
|
+
* Install rbenv
|
9
|
+
* Install an old version of Ruby: `rbenv install 2.1.0`
|
10
|
+
* Use that older version: `rbenv local 2.1.0`
|
11
|
+
|
3
12
|
## Developing
|
4
13
|
|
5
14
|
* Install Bundler gem: `gem install bundler`
|
@@ -18,6 +18,7 @@ require 'net/http'
|
|
18
18
|
require 'uri'
|
19
19
|
require 'zlib'
|
20
20
|
require 'newrelic-fluentd-output/version'
|
21
|
+
require 'yajl'
|
21
22
|
|
22
23
|
module Fluent
|
23
24
|
module Plugin
|
@@ -108,9 +109,9 @@ module Fluent
|
|
108
109
|
end
|
109
110
|
io = StringIO.new
|
110
111
|
gzip = Zlib::GzipWriter.new(io)
|
111
|
-
gzip << [payload]
|
112
|
+
gzip << Yajl.dump([payload])
|
112
113
|
gzip.close
|
113
|
-
|
114
|
+
send_payload(io.string)
|
114
115
|
end
|
115
116
|
|
116
117
|
def handle_response(response)
|
@@ -119,7 +120,7 @@ module Fluent
|
|
119
120
|
end
|
120
121
|
end
|
121
122
|
|
122
|
-
def
|
123
|
+
def send_payload(payload)
|
123
124
|
http = Net::HTTP.new(@end_point.host, 443)
|
124
125
|
http.use_ssl = true
|
125
126
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-newrelic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- New Relic Logging Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|