munin_manager 1.2.3 → 1.2.4
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.
- data/VERSION +1 -1
- data/lib/munin_manager/plugins/haproxy_app_response_time.rb +6 -19
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.4
|
|
@@ -45,31 +45,18 @@ module MuninManager
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def config
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
count = 0
|
|
51
|
-
server_hash = {}
|
|
52
|
-
while(!f.eof? && count < 100)
|
|
53
|
-
count += 1
|
|
54
|
-
line = f.readline
|
|
55
|
-
chunks = line.split(/\s+/)
|
|
56
|
-
server, port = chunks[8].split(":") rescue []
|
|
57
|
-
server_name = server.split("/")[1] rescue nil
|
|
58
|
-
server_hash[server_name] = '' unless server_name.nil?
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
default = Array(@measure)
|
|
62
|
-
|
|
48
|
+
collect!(:save_state => false)
|
|
49
|
+
|
|
63
50
|
config_text = <<-LABEL
|
|
64
51
|
graph_title HAProxy App Server #{@measure}
|
|
65
52
|
graph_vlabel time (secs)
|
|
66
53
|
graph_category Haproxy
|
|
67
54
|
LABEL
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
config_text << "\n"
|
|
55
|
+
|
|
56
|
+
data.keys.sort.each do |server|
|
|
57
|
+
config_text << "#{server}_#{@measure}.label #{server}_#{@measure}\n"
|
|
71
58
|
end
|
|
72
|
-
config_text
|
|
59
|
+
config_text
|
|
73
60
|
end
|
|
74
61
|
|
|
75
62
|
def values
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: munin_manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rohith Ravi
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-10-
|
|
12
|
+
date: 2009-10-12 00:00:00 -07:00
|
|
13
13
|
default_executable: munin_manager
|
|
14
14
|
dependencies: []
|
|
15
15
|
|