fluent-plugin-td-monitoring 0.1.0 → 0.1.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: 9f1d40a94604a0ff21be542f3396e8846039d197
4
- data.tar.gz: 63b517624e11f57fbe63311abc7ba3aa74d2e210
3
+ metadata.gz: dedbe525edc4681d73f72d20ac3c326e935298a1
4
+ data.tar.gz: 01bb7314e6d6246252dcdf118861e46e33eba070
5
5
  SHA512:
6
- metadata.gz: 3779c7c148a8ff713ba9dfcd9fa5277d58e388d16a31be46340046e043c9652e86ea5699061425f558f7211b2f74838c58dd0945ab5f040a6d9a146908ee2aee
7
- data.tar.gz: afe08f89edfa04671818332f1c6d9a89c5ef409d5fcd9fb8d2247fa079755703d87506763505f10d8beb270ea2d5503a1dfa43fd19dff69101dc60ad4044ad6a
6
+ metadata.gz: fe3e49c87aaab1fb782a95134ccbc7eca030e62d72a111a826ebc652536db4009865da991af7597eb5a9806fb76586f85875f4416cedaadb8d57e84221effb17
7
+ data.tar.gz: 3754c5dd617a386869a2c8bf12b4092519ac1fb19ea7f7ecd2c451d0a43c4be56830167f216e0ef32bd7603d86425927b20bee2f8b252f7db7474f4017e68dde
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ == 2014-03-09 version 0.1.1
2
+
3
+ - Catch an exception when can't get system metrics
4
+
1
5
  == 2013-12-04 version 0.1.0
2
6
 
3
7
  - Add in_td_monitor_agent and out_td_counter
data/README.md CHANGED
@@ -22,6 +22,16 @@ Use `-p` option to add plugin into search path.
22
22
  > fluentd -c fluentd.conf -p /path/to/fluent-plugin-td-monitoring/lib/fluent/plugin
23
23
  ```
24
24
 
25
+ # Supported Environment
26
+
27
+ * Fluentd v0.10.33 or later
28
+
29
+ * corresponding td-agent is v1.1.13 or later
30
+
31
+ * Full features are supported on Linux.
32
+
33
+ * system metrics is not supported on Mac and Windows.
34
+
25
35
  # Configuration
26
36
 
27
37
  td-monitoring plugin consists of two plugins, `td_monitor_agent` and `td_counter`.
@@ -46,6 +56,10 @@ Your Treasure Data API key.
46
56
 
47
57
  Specify unique instance id across nodes. If not specified, use configuration file path instead.
48
58
 
59
+ * disable_node_info (default false)
60
+
61
+ Send system metrics, CPU / Memory / Disk, or not.
62
+
49
63
  ## td_counter
50
64
 
51
65
  This plugin collects event traffic per tag and collected results are send via `td_monitor_agent` plugin.
@@ -72,6 +86,11 @@ This plugin requires `td_monitor_agent` in same configuration.
72
86
  This is an optinal configuration. If use `<store>`, `td_counter` passes received records into `<store>` plugin.
73
87
  Only output plugin is available in `<store>`.
74
88
 
89
+ ### NOTE
90
+
91
+ This plugin causes the performance degression because collecting the number of record and message bytes.
92
+ If you want to use this plugin on high traffic environment, please check the performance.
93
+
75
94
  # Test for Development Environment
76
95
 
77
96
  ```sh
@@ -80,7 +99,7 @@ $ git clone git@github.com:treasure-data/fluent-plugin-td-monitoring.git
80
99
  $ cd fluent-plugin-td-monitoring
81
100
  $ bundle install
82
101
  $ bundle exec rake build
83
- $ gem install pkg/fluent-plugin-td-monitoring-0.0.1.gem
102
+ $ gem install pkg/fluent-plugin-td-monitoring-0.1.1.gem
84
103
  $ fluentd -c fluentd.conf
85
104
  ```
86
105
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -3364,3 +3364,85 @@ l+axofjk70YllJyJ22k4vuxcDlbHZVHlUIiIv0LVKz3l+bqeLrPK9HOSAgu+TGbrIP65y7WZf+a2
3364
3364
  E/rKS03Z7lNGBjvGTq2TWoF+bCpLagVFjPIhpDGQh2xlnJ2lYJU6Un/10asIbvPuW/mIPX64b24D
3365
3365
  5EI=
3366
3366
  -----END CERTIFICATE-----
3367
+
3368
+ treasuredata.com
3369
+ ================
3370
+ -----BEGIN CERTIFICATE-----
3371
+ MIIE0DCCA7igAwIBAgIBBzANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMx
3372
+ EDAOBgNVBAgTB0Fy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r4CUWWoriMY
3436
+ avx4A6lNf4DD+qta/KFApMoZFv6yyO9ecw3ud72a9nmYvLEHZ6IVDd2gWMZEewo+
3437
+ YihfukEHU1jPEX44dMX4/7VpkI+EdOqXG68CAQOjgcAwgb0wHQYDVR0OBBYEFNLE
3438
+ sNKR1EwRcbNhyz2h/t2oatTjMIGNBgNVHSMEgYUwgYKAFNLEsNKR1EwRcbNhyz2h
3439
+ /t2oatTjoWekZTBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYVGhlIEdvIERhZGR5
3440
+ IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRpZmlj
3441
+ YXRpb24gQXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQAD
3442
+ ggEBADJL87LKPpH8EsahB4yOd6AzBhRckB4Y9wimPQoZ+YeAEW5p5JYXMP80kWNy
3443
+ OO7MHAGjHZQopDH2esRU1/blMVgDoszOYtuURXO1v0XJJLXVggKtI3lpjbi2Tc7P
3444
+ TMozI+gciKqdi0FuFskg5YmezTvacPd+mSYgFFQlq25zheabIZ0KbIIOqPjCDPoQ
3445
+ HmyW74cNxA9hi63ugyuV+I6ShHI56yDqg+2DzZduCLzrTia2cyvk0/ZM/iZx4mER
3446
+ dEr/VxqHD3VILs9RaRegAhJhldXRQLIQTO7ErBBDpqWeCtWVYpoNz4iCxTIM5Cuf
3447
+ ReYNnyicsbkqWletNw+vHX/bvZ8=
3448
+ -----END CERTIFICATE-----
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.required_ruby_version = '>= 1.9.2'
17
17
 
18
18
  gem.add_dependency "fluentd", "~> 0.10.33"
19
- gem.add_dependency "ohai", "~> 6.18.0"
19
+ gem.add_dependency "ohai", "~> 6.20.0"
20
20
  gem.add_dependency "httpclient", "~> 2.3.4"
21
21
  gem.add_development_dependency "rake", ">= 0.9.2"
22
22
  gem.add_development_dependency "simplecov", ">= 0.5.4"
@@ -3,7 +3,7 @@ module Fluent
3
3
  require_relative 'out_td_counter'
4
4
 
5
5
  class TDMonitorAgentInput < Input
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.1"
7
7
 
8
8
  Plugin.register_input('td_monitor_agent', self)
9
9
 
@@ -61,11 +61,16 @@ module Fluent
61
61
 
62
62
  @started_at = Time.now.to_i
63
63
  @monitor_agent = ExMonitorAgentInput.new
64
- unless @disable_node_info
65
- @cpu_stat = CpuStat.new
66
- @disk_stat = DiskStat.new(FileBuffer.class_variable_get(:@@buffer_paths).keys)
67
- @memory_stat = MemoryStat.new
68
- @bandwidth_stat = BandwidthStat.new(@emit_interval)
64
+ begin
65
+ unless @disable_node_info
66
+ @cpu_stat = CpuStat.new
67
+ @disk_stat = DiskStat.new(FileBuffer.class_variable_get(:@@buffer_paths).keys)
68
+ @memory_stat = MemoryStat.new
69
+ @bandwidth_stat = BandwidthStat.new(@emit_interval)
70
+ end
71
+ rescue => e
72
+ @disable_node_info = true
73
+ $log.warn "Failed to get system metrics. Set 'disable_node_info' to true: #{e}"
69
74
  end
70
75
  @counters = collect_counters
71
76
 
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-td-monitoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-03 00:00:00.000000000 Z
11
+ date: 2014-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.10.33
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.10.33
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ohai
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 6.18.0
33
+ version: 6.20.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 6.18.0
40
+ version: 6.20.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: httpclient
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 2.3.4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 2.3.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.9.2
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.9.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.5.4
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.5.4
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rr
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: 1.0.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 1.0.0
97
97
  description: ''
@@ -121,17 +121,17 @@ require_paths:
121
121
  - lib
122
122
  required_ruby_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - '>='
124
+ - - ">="
125
125
  - !ruby/object:Gem::Version
126
126
  version: 1.9.2
127
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.0.3
134
+ rubygems_version: 2.2.0
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: ''