lib/puma/plugin/management_server.rb
# Override the default {Server} configuration
#
# @param port [Integer] override a default port number that a server will listen to (default: 9990)
# @param host [String, nil] override a default bind address that a server uses for
#   listening (default: '0.0.0.0')
# @param logger [Logger, nil] override a default logger (default: `Logger.new($stdout)`)
# @param registry [Prometheus::Client::Registry] override a default registry
Override the default {Server} configuration
Override the default { Server } configuration
def management_server(port: nil, host: nil, logger: nil, registry: nil)
          @options[:management_server_port] = port if port
          @options[:management_server_host] = host if host
          @options[:management_server_logger] = logger if logger
          @options[:management_server_registry] = registry if registry
        end
def management_server ( port : nil , host : nil , logger : nil , registry : nil ) @options [ :management_server_port ] = port if port @options [ :management_server_host ] = host if host @options [ :management_server_logger ] = logger if logger @options [ :management_server_registry ] = registry if registry end
Override the default {Server} configuration
Override the default { Server } configuration
port
override a default port number that a server will listen to (default: 9990)
override a default port number that a server will listen to ( default : 9990 )
host
override a default bind address that a server uses for listening (default: '0.0.0.0')
override a default bind address that a server uses for listening ( default : ' 0 . 0 . 0 . 0 ' )
logger
override a default logger (default: `Logger.new($stdout)`)
override a default logger ( default : ` Logger . new ( $stdout ) ` )
registry
override a default registry
override a default registry