Class: Bigcommerce::Prometheus::Servers::Thin::Controllers::NotFoundController

Inherits:
BaseController
  • Object
show all
Defined in:
lib/bigcommerce/prometheus/servers/thin/controllers/not_found_controller.rb

Overview

Handle invalid requests to server

Instance Method Summary collapse

Methods inherited from BaseController

#handle, #initialize, #set_header

Constructor Details

This class inherits a constructor from Bigcommerce::Prometheus::Servers::Thin::Controllers::BaseController

Instance Method Details

#callObject



27
28
29
30
# File 'lib/bigcommerce/prometheus/servers/thin/controllers/not_found_controller.rb', line 27

def call
  @response.status = 404
  @response.body << 'Not Found! The Prometheus Ruby Exporter only listens on /metrics and /send-metrics'
end