lib/riemann/tools/haproxy.rb in riemann-tools-1.10.0 vs lib/riemann/tools/haproxy.rb in riemann-tools-1.11.0
- old
+ new
@@ -14,9 +14,11 @@
opt :stats_url, 'Full url to haproxy stats (eg: https://user:password@host.com:9999/stats)', required: true,
type: :string
opt :user_agent, 'User-Agent header for HTTP requests', short: :none, default: "#{File.basename($PROGRAM_NAME)}/#{Riemann::Tools::VERSION} (+https://github.com/riemann/riemann-tools)"
def initialize
+ super
+
@uri = URI("#{opts[:stats_url]};csv")
end
def tick
csv.each do |row|