mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fixing config / labels
This commit is contained in:
parent
c39b74e17e
commit
f847a3a425
3 changed files with 14 additions and 11 deletions
|
@ -85,11 +85,12 @@ when "config"
|
|||
puts "graph_args -l 0"
|
||||
puts "graph_scale yes"
|
||||
puts "graph_info Tracks how many threads per thin processes"
|
||||
mpm.get_pids.sort.each do |pid|
|
||||
puts "thin_#{pid}.label thin_#{pid}"
|
||||
puts "thin_#{pid}.info Threads per Thin process"
|
||||
puts "thin_#{pid}.type GAUGE"
|
||||
puts "thin_#{pid}.min 0"
|
||||
mpm.get_pids.sort.each do |instance|
|
||||
pid, port = instance.split("|")
|
||||
puts "thin_#{port}.label thin_#{port}"
|
||||
puts "thin_#{port}.info Threads per Thin process"
|
||||
puts "thin_#{port}.type GAUGE"
|
||||
puts "thin_#{port}.min 0"
|
||||
end
|
||||
when "autoconf"
|
||||
if mpm.autoconf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue