fluent-plugin-numeric-monitor 1.0.0 → 1.0.1

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: bb1a673d18f2f34ac4c1e892ea7e8778f7c508f9
4
- data.tar.gz: 9873ee3b9e42431e1c489bd621f77fbf7dbd45d9
3
+ metadata.gz: 3887ed9e336c2a47f3e1dc980e19b0f352b3c7f7
4
+ data.tar.gz: 913fd63fa2021d39e4c342a09f700f3abf0dac31
5
5
  SHA512:
6
- metadata.gz: e1194eebc1ed7de25de69d12b68d1cf5932c407149c75deb258cbc0e7fc32175c0087fe1dd641442218165a50677959dc3e84b8fcda2bd593bb91096625a5273
7
- data.tar.gz: 5350d5ce64be10f5ed3b4ce4a37891bcea1c9b2a1627b6a4224f5e1f688fc8aa265443bd4f220fcec6ac21edb3f10b4096422513ad8079e62992cd3e546ea349
6
+ metadata.gz: afe400e780ec54837e85e2819a4ddda5e09f40ea3b7a0f35dc136bc13b318c6b11967bfda12e3216699c8fd480eb85190ee248135b556eabfe6e642d0317accb
7
+ data.tar.gz: 3808a8830ef3501d83345310244680dc0a74745b50e34e899c51cbfcbefaf112ed7f86d4dcc590c42c42072d4067640283c92ea8a74bbd2fd9a0198bb774e7c4
data/README.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # fluent-plugin-numeric-monitor
2
2
 
3
- ## Component
4
-
5
- ### NumericMonitorOutput
6
-
7
3
  [Fluentd](http://fluentd.org) plugin to calculate min/max/avg/sum and specified percentile values (and 'num' of matched messages), which used in notifications (such as fluent-plugin-notifier)
8
4
 
9
5
  ## Configuration
@@ -14,13 +10,23 @@ To calculate about HTTP requests duration (microseconds) in 'duraion', with 90 a
14
10
 
15
11
  <match apache.log.**>
16
12
  @type numeric_monitor
17
- unit minute
13
+
14
+ @label @monitor_result
18
15
  tag monitor.duration
16
+
17
+ unit minute
18
+
19
19
  aggregate all
20
- input_tag_remove_prefix apache.log
21
20
  monitor_key duration
22
21
  percentiles 90,95
22
+ input_tag_remove_prefix apache.log
23
23
  </match>
24
+
25
+ <label @monitor_result>
26
+ <match monitor.duration>
27
+ # output result data into visualization tools or ...
28
+ </match>
29
+ </label>
24
30
 
25
31
  Output messages like:
26
32
 
@@ -43,7 +49,7 @@ Output messages like:
43
49
 
44
50
  * tag\_prefix
45
51
 
46
- The prefix string which will be added to the input tag. `output_per_tag yes` must be specified together.
52
+ The prefix string which will be added to the input tag. `output_per_tag yes` must be specified together (deprecated: use `@label` for event routing instead).
47
53
 
48
54
  * input\_tag\_remove\_prefix
49
55
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "fluent-plugin-numeric-monitor"
4
- gem.version = "1.0.0"
4
+ gem.version = "1.0.1"
5
5
  gem.authors = ["TAGOMORI Satoshi"]
6
6
  gem.email = ["tagomoris@gmail.com"]
7
7
  gem.description = %q{Fluentd plugin to calculate min/max/avg/Xpercentile values, and emit these data as message}
@@ -14,6 +14,8 @@ class Fluent::Plugin::NumericMonitorOutput < Fluent::Plugin::Output
14
14
 
15
15
  config_param :output_per_tag, :bool, default: false,
16
16
  desc: 'Produce monitor result per input tags.'
17
+ config_param :input_tag_remove_prefix, :string, default: nil,
18
+ desc: 'The prefix string which will be removed from the input tag.'
17
19
 
18
20
  config_param :monitor_key, :string, desc: 'The key to monitor in the event record.'
19
21
  config_param :output_key_prefix, :string, default: nil,
@@ -27,12 +29,8 @@ class Fluent::Plugin::NumericMonitorOutput < Fluent::Plugin::Output
27
29
 
28
30
  config_param :tag_prefix, :string, default: nil,
29
31
  desc: 'The prefix string to be added to input tags. Use with "output_per_tag yes".',
30
- deprecated: "Use @label routing instead."
31
- config_param :input_tag_remove_prefix, :string, default: nil,
32
- desc: 'The prefix string which will be removed from the input tag.',
33
32
  deprecated: 'Use @label routing instead.'
34
33
 
35
-
36
34
  attr_accessor :count, :last_checked
37
35
 
38
36
  def configure(conf)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-numeric-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi