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 +4 -4
- data/README.textile +2 -2
- data/VERSION +1 -1
- data/lib/fluent/plugin/in_cloudstack.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f763668b2e2b0b25c1af99c1469fa4248ff36004
|
4
|
+
data.tar.gz: 028175bcd0e5331776773232faab117883cc0ca8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
**
|
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 {"
|
84
|
+
20131028T133511+0000 cloudstack.usages {"events_flow":5}
|
85
85
|
|
86
86
|
</pre>
|
87
87
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
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
|