Class: Munin::PassengerQueue
- Inherits:
-
RequestLogAnalyzerPlugin
- Object
- RequestLogAnalyzerPlugin
- Munin::PassengerQueue
- Defined in:
- lib/munin/plugins/passenger_queue.rb
Instance Attribute Summary
Attributes inherited from RequestLogAnalyzerPlugin
#debug, #environment, #graph_category, #passenger_memory_stats, #passenger_status
Instance Method Summary collapse
Methods inherited from RequestLogAnalyzerPlugin
#autoconf, #handle_arguments, #initialize, #require_command, #require_gem, #require_passenger_memory_stats, #require_passenger_status, #require_request_log_analyzer_gem, #require_tail_command, #require_yaml_gem, #run_command
Constructor Details
This class inherits a constructor from Munin::RequestLogAnalyzerPlugin
Instance Method Details
#config ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/munin/plugins/passenger_queue.rb', line 10 def config puts <<-CONFIG graph_category #{graph_category} graph_title Passenger queue graph_vlabel count graph_args --base 1000 -l 0 graph_info The amount of requests waiting on global queue requests.label requests CONFIG exit 0 end |
#ensure_configuration ⇒ Object
5 6 7 8 |
# File 'lib/munin/plugins/passenger_queue.rb', line 5 def ensure_configuration require_passenger_status super end |
#run ⇒ Object
23 24 25 26 27 |
# File 'lib/munin/plugins/passenger_queue.rb', line 23 def run status = run_command(passenger_status, debug) status =~ /Waiting on global queue:\s+(\d+)/ puts "requests.value #{$1}" end |