fluent-plugin-cloudstack 0.0.4 → 0.0.6

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: c04b0483c9975c8fc4f196907a71df1a31f5d911
4
- data.tar.gz: e0a41f5b7d8d2f9a1bf6d3a1c1889fc92a98073e
3
+ metadata.gz: f763668b2e2b0b25c1af99c1469fa4248ff36004
4
+ data.tar.gz: 028175bcd0e5331776773232faab117883cc0ca8
5
5
  SHA512:
6
- metadata.gz: 39b8c083cfa1a443e6b24d4868b80fb2aa0aa175fc589d55e2542e455a0a53172ddc408837f4eb00287775096cb0d7322f587962b301ae286eeefc45ec769a29
7
- data.tar.gz: a2a0791de3be0c2ebf06c606c8d3040dc77cac0a20d442d2d828a49e1450bc4955881eb3727a6cc4a087bec641e1e4664e10c0114eef40519b8312f5781ed9c2
6
+ metadata.gz: d0ec2aebfb40076a9cb27f4a69799c441f8aadfc62132cb9c3dafcff1cf64cb2cd824f6a1baa563b15f5eb64d3552d4b4f5d747702f4c5fecf99bc9962b3aa69
7
+ data.tar.gz: fed718e35d9c4a181593013dacf7b0a015befe8529e6eb6a93dcb38e789f105eb9f7720a34ee7cde7a0261d443a371027351fab3448ce3a83a248b43d0cbe6a8
data/README.textile CHANGED
@@ -11,7 +11,7 @@ Fluentd input plugin to get usages and events from CloudStack API.
11
11
  ** usages_per_disk_offering
12
12
  * event
13
13
  ** event_log
14
- ** event_flow(per interval)
14
+ ** events_flow(per interval)
15
15
 
16
16
 
17
17
  h2. Installation
@@ -81,7 +81,7 @@ h2. Data Example
81
81
  "data_volume_sum":42949672960,
82
82
  "t1.micro":1,
83
83
  "Datadisk_40GB":1}
84
- 20131028T133511+0000 cloudstack.usages {"event_flow":5}
84
+ 20131028T133511+0000 cloudstack.usages {"events_flow":5}
85
85
 
86
86
  </pre>
87
87
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.6
@@ -28,6 +28,7 @@ module Fluent
28
28
 
29
29
  def configure(conf)
30
30
  super
31
+
31
32
  @conf = conf
32
33
  unless @host && @apikey && @secretkey
33
34
  raise ConfigError, "'host' and 'apikey' and 'secretkey' must be all specified."
@@ -47,6 +48,7 @@ module Fluent
47
48
 
48
49
  @event_output_tag = "#{@tag}.event"
49
50
  @usages_output_tag = "#{@tag}.usages"
51
+
50
52
  end
51
53
 
52
54
  def start
@@ -119,7 +121,7 @@ module Fluent
119
121
 
120
122
  if vms
121
123
  vms.each do |vm|
122
- memory_sum += vm["memory"].to_i
124
+ memory_sum += vm["memory"].to_i * 1024 * 1024
123
125
  cpu_sum += vm["cpunumber"].to_i
124
126
  usages_per_service_offering[vm["serviceofferingname"]] += 1
125
127
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cloudstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuichi UEMURA