fluent-plugin-statsd-output 1.2.0 → 1.3.0

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa2a2a4c557eedb6b22bd8ad21a6e18ca9cbbc2e
4
- data.tar.gz: 715cb7f05330b4bb36f96eb13fac3184743c3359
3
+ metadata.gz: e02ca71e2584cc505e7d2cd91786b363f5a5f8ea
4
+ data.tar.gz: 0fa458b0c88ef4b7c231a75953f62dcf9d5c176f
5
5
  SHA512:
6
- metadata.gz: 118f8ec2c22831258456eff0504dee1c940253fd79c8f508f01170edd49f777485e1c30a1dc09947aaf9a2e8559422c2da411175f4be6689ab853ba5fd6edbca
7
- data.tar.gz: 806afc9ea2b91580635d660547d48fcf9284b4cc84415791b9451b00f3ec2d33ec52689b6672b8f654c484cc3ac9cd9ec1b52fbe5fa22b8953dfa70e7196619b
6
+ metadata.gz: b7751ed95c4d45e9c772419104a3c507a115c30f849c99af691c2fb5e6f278bf9e3a0835073a34c9a99b0f9441015a169db8b3134646c2cea70253e6634e5fe3
7
+ data.tar.gz: 0fffe9cfdc7a6b5fd0b7601536ba3b8090cf2eb628178efb721d1cd8a0b12c9e5efe9be390529af186b36a569088e80102ecd6b3c43f4a36c9842c12652104f8
@@ -0,0 +1,17 @@
1
+ sudo: enable
2
+ dist: trusty
3
+ language: ruby
4
+
5
+ cache: bundler
6
+
7
+ rvm:
8
+ - 2.1.10
9
+ - 2.2.7
10
+ - 2.3.4
11
+ - 2.4.1
12
+
13
+ before_install:
14
+ - gem install bundler --no-doc
15
+
16
+ script: bundle exec rspec
17
+
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Fluent event to statsd plugin.
2
2
 
3
+ [![Build Status](https://travis-ci.org/lingochamp/fluent-plugin-statsd.svg?branch=master)](https://travis-ci.org/lingochamp/fluent-plugin-statsd)
4
+
3
5
  # Installation
4
6
 
5
7
  ```
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.3.0
@@ -26,7 +26,7 @@ module Fluent
26
26
 
27
27
  def configure(conf)
28
28
  super
29
- @statsd = Statsd.new(host, port)
29
+ @statsd = Statsd::Batch.new(Statsd.new(host, port))
30
30
  @statsd.namespace = namespace if namespace
31
31
 
32
32
  if batch_byte_size
@@ -45,6 +45,7 @@ module Fluent
45
45
 
46
46
  def shutdown
47
47
  super
48
+ @statsd.flush
48
49
  end
49
50
 
50
51
  def format(tag, time, record)
@@ -60,6 +61,7 @@ module Fluent
60
61
  send_to_statsd(*metric.values_at(*arg_names).map {|str| parser.parse(str) })
61
62
  end
62
63
  end
64
+ @statsd.flush
63
65
  end
64
66
 
65
67
 
@@ -23,6 +23,7 @@ RSpec.describe Fluent::StatsdOutput do
23
23
  let(:driver) { create_driver(config) }
24
24
  let(:statsd) { double('statsd', increment: true,
25
25
  timing: true,
26
+ flush: true,
26
27
  'namespace=' => true,
27
28
  'batch_size=' => true,
28
29
  'batch_byte_size' => true)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-statsd-output
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Song
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-19 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -88,6 +88,7 @@ extra_rdoc_files: []
88
88
  files:
89
89
  - ".gitignore"
90
90
  - ".rspec"
91
+ - ".travis.yml"
91
92
  - AUTHORS
92
93
  - Gemfile
93
94
  - Gemfile.lock
@@ -95,7 +96,6 @@ files:
95
96
  - VERSION
96
97
  - fluent-plugin-statsd.gemspec
97
98
  - lib/fluent/plugin/out_statsd.rb
98
- - spec/examples.txt
99
99
  - spec/plugin/out_statsd_spec.rb
100
100
  - spec/spec_helper.rb
101
101
  homepage: https://github.com/lingochamp/fluent-plugin-statsd
@@ -117,11 +117,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  requirements: []
119
119
  rubyforge_project:
120
- rubygems_version: 2.6.11
120
+ rubygems_version: 2.6.13
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: fluentd output filter plugin to send metrics to Esty StatsD
124
124
  test_files:
125
- - spec/examples.txt
126
125
  - spec/plugin/out_statsd_spec.rb
127
126
  - spec/spec_helper.rb