mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 18:07:20 +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
|
@ -14,18 +14,17 @@ require 'mysql'
|
|||
require 'yaml'
|
||||
|
||||
class Grapher
|
||||
|
||||
def initialize(db_conf)
|
||||
@db_conf = db_conf
|
||||
end
|
||||
|
||||
def config
|
||||
puts <<-END_CONFIG
|
||||
graph_title Delayed_Jobs Queue Size
|
||||
graph_args -l 0
|
||||
graph_vlabel jobs to be run
|
||||
jobs.label jobs
|
||||
jobs.type GAUGE
|
||||
puts <<~END_CONFIG
|
||||
graph_title Delayed_Jobs Queue Size
|
||||
graph_args -l 0
|
||||
graph_vlabel jobs to be run
|
||||
jobs.label jobs
|
||||
jobs.type GAUGE
|
||||
END_CONFIG
|
||||
end
|
||||
|
||||
|
@ -39,7 +38,6 @@ jobs.type GAUGE
|
|||
value = result.fetch_hash.values.first
|
||||
puts "jobs.value #{value}"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
if __FILE__ == $0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue