Class: Rubino::API::Operations::MetricsOperation

Inherits:
Object
  • Object
show all
Defined in:
lib/rubino/api/operations/metrics_operation.rb

Overview

GET /v1/metrics — Prometheus text exposition format (text/plain v0.0.4). No auth required (allowlisted in Middleware::Auth::SKIP_PATHS).

Returns:

  • ([Integer, Hash, Array<String>])

    raw Rack triple with the rendered registry.

Class Method Summary collapse

Class Method Details

.call(_request) ⇒ Object



11
12
13
14
# File 'lib/rubino/api/operations/metrics_operation.rb', line 11

def self.call(_request)
  body = ::Rubino::Metrics.render
  [200, { "content-type" => "text/plain; version=0.0.4" }, [body]]
end