module Statusz
Module for collecting diagnostic information and formatting it as an HTML page to serve on the /statusz endpoint.
Public Instance Methods
response(plugin)
click to toggle source
Note: The plugin parameter is referenced in STATUSZ_TMPL.
# File lib/fluent/plugin/statusz.rb, line 23 def response(plugin) uptime = Time.now - SERVER_START uptime_str = format('%d hr %02d min %02d sec', uptime / 3600, (uptime / 60) % 60, uptime % 60) ERB.new(STATUSZ_TMPL).result(binding) end