class Metrics
Implements the falcon supervisor metrics
command.
Definitions
def call(stream)
Send the metrics message to the supervisor and print the results.
Implementation
def call(stream)
stream.puts({please: "metrics"}.to_json, separator: "\0", chomp: true)
response = JSON.parse(stream.read_until("\0"), symbolize_names: true)
$stdout.puts response
end