riemann-babbler 1.0.8.2 → 1.0.8.3
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.
@@ -6,14 +6,14 @@ class Riemann::Babbler::StatusFile < Riemann::Babbler
|
|
6
6
|
plugin.set_default(:file, '/var/tmp/error.txt')
|
7
7
|
plugin.set_default(:interval, 60)
|
8
8
|
plugin.set_default(:max_lines, 100)
|
9
|
-
plugin.set_default(
|
9
|
+
plugin.set_default(:, 5)
|
10
10
|
end
|
11
11
|
|
12
12
|
def collect
|
13
13
|
content = File.read(plugin.file).split("\n").delete_if {|x| x.strip.empty? }
|
14
14
|
{
|
15
15
|
:service => plugin.service + " #{plugin.file}",
|
16
|
-
:description => content.last(plugin.
|
16
|
+
:description => content.last(plugin.report_lines).join("\n"),
|
17
17
|
:metric => content.count
|
18
18
|
}
|
19
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riemann-babbler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.8.
|
4
|
+
version: 1.0.8.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: riemann-client
|
@@ -210,3 +210,4 @@ summary: Plugin manager for riemann.
|
|
210
210
|
test_files:
|
211
211
|
- spec/config.yml
|
212
212
|
- spec/default.rb
|
213
|
+
has_rdoc:
|