mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Ruby plugins: apply style changes as suggested by "rubocop --fix-layout"
This commit is contained in:
parent
26c29daa2b
commit
b0b39b018e
30 changed files with 1447 additions and 1384 deletions
|
@ -24,10 +24,10 @@ passenger_rss = nil
|
|||
|
||||
`#{memory_stats_command}`.each_line do |line|
|
||||
next unless /### Total private dirty RSS: (\d+\.\d+) MB/.match(line)
|
||||
|
||||
passenger_rss = $~[1] unless apache_rss.nil?
|
||||
apache_rss ||= $~[1]
|
||||
end
|
||||
|
||||
puts "apache_rss.value #{apache_rss}"
|
||||
puts "passenger_rss.value #{passenger_rss}"
|
||||
|
||||
|
|
|
@ -39,4 +39,3 @@ puts "max.value #{max}"
|
|||
puts "count.value #{count}"
|
||||
puts "active.value #{active}"
|
||||
puts "queued.value #{queued.to_i}"
|
||||
|
||||
|
|
|
@ -1,27 +1,27 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
def output_config
|
||||
puts <<-END
|
||||
graph_category webserver
|
||||
graph_title status
|
||||
graph_vlabel count
|
||||
graph_info This graph shows how much passenger process are working, available and how much queries are waiting.
|
||||
max.label max processes
|
||||
max.draw AREA
|
||||
max.info Maximum processes allowed to run simultaneously.
|
||||
sessions.label queued requests
|
||||
sessions.draw LINE2
|
||||
sessions.info Requests queued, waiting to be processed.
|
||||
running.label running processes
|
||||
running.draw LINE1
|
||||
running.info The number of application instances that are currently alive.
|
||||
active.label active processes
|
||||
active.draw LINE1
|
||||
active.info The number of application instances that are currently processing requests.
|
||||
waiting.label waiting requests
|
||||
waiting.draw LINE2
|
||||
waiting.info Requests waiting to be queued.
|
||||
END
|
||||
puts <<~END
|
||||
graph_category webserver
|
||||
graph_title status
|
||||
graph_vlabel count
|
||||
graph_info This graph shows how much passenger process are working, available and how much queries are waiting.
|
||||
max.label max processes
|
||||
max.draw AREA
|
||||
max.info Maximum processes allowed to run simultaneously.
|
||||
sessions.label queued requests
|
||||
sessions.draw LINE2
|
||||
sessions.info Requests queued, waiting to be processed.
|
||||
running.label running processes
|
||||
running.draw LINE1
|
||||
running.info The number of application instances that are currently alive.
|
||||
active.label active processes
|
||||
active.draw LINE1
|
||||
active.info The number of application instances that are currently processing requests.
|
||||
waiting.label waiting requests
|
||||
waiting.draw LINE2
|
||||
waiting.info Requests waiting to be queued.
|
||||
END
|
||||
exit 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue