Révision b0b39b01
Ruby plugins: apply style changes as suggested by "rubocop --fix-layout"
| plugins/passenger/passenger_status | ||
|---|---|---|
| 1 | 1 |
#!/usr/bin/env ruby |
| 2 | 2 |
|
| 3 | 3 |
def output_config |
| 4 |
puts <<-END
|
|
| 5 |
graph_category webserver |
|
| 6 |
graph_title status |
|
| 7 |
graph_vlabel count |
|
| 8 |
graph_info This graph shows how much passenger process are working, available and how much queries are waiting. |
|
| 9 |
max.label max processes |
|
| 10 |
max.draw AREA |
|
| 11 |
max.info Maximum processes allowed to run simultaneously. |
|
| 12 |
sessions.label queued requests |
|
| 13 |
sessions.draw LINE2 |
|
| 14 |
sessions.info Requests queued, waiting to be processed. |
|
| 15 |
running.label running processes |
|
| 16 |
running.draw LINE1 |
|
| 17 |
running.info The number of application instances that are currently alive. |
|
| 18 |
active.label active processes |
|
| 19 |
active.draw LINE1 |
|
| 20 |
active.info The number of application instances that are currently processing requests. |
|
| 21 |
waiting.label waiting requests |
|
| 22 |
waiting.draw LINE2 |
|
| 23 |
waiting.info Requests waiting to be queued. |
|
| 24 |
END |
|
| 4 |
puts <<~END
|
|
| 5 |
graph_category webserver
|
|
| 6 |
graph_title status
|
|
| 7 |
graph_vlabel count
|
|
| 8 |
graph_info This graph shows how much passenger process are working, available and how much queries are waiting.
|
|
| 9 |
max.label max processes
|
|
| 10 |
max.draw AREA
|
|
| 11 |
max.info Maximum processes allowed to run simultaneously.
|
|
| 12 |
sessions.label queued requests
|
|
| 13 |
sessions.draw LINE2
|
|
| 14 |
sessions.info Requests queued, waiting to be processed.
|
|
| 15 |
running.label running processes
|
|
| 16 |
running.draw LINE1
|
|
| 17 |
running.info The number of application instances that are currently alive.
|
|
| 18 |
active.label active processes
|
|
| 19 |
active.draw LINE1
|
|
| 20 |
active.info The number of application instances that are currently processing requests.
|
|
| 21 |
waiting.label waiting requests
|
|
| 22 |
waiting.draw LINE2
|
|
| 23 |
waiting.info Requests waiting to be queued.
|
|
| 24 |
END
|
|
| 25 | 25 |
exit 0 |
| 26 | 26 |
end |
| 27 | 27 |
|
Formats disponibles : Unified diff