Skip to content

Instantly share code, notes, and snippets.

@conr
Last active December 7, 2017 17:07
Show Gist options
  • Save conr/90cbb757a37a92d91e15552b6874cc27 to your computer and use it in GitHub Desktop.
Save conr/90cbb757a37a92d91e15552b6874cc27 to your computer and use it in GitHub Desktop.
RoR Prometheus config.ru
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
require 'rack'
require 'prometheus/middleware/collector'
require 'prometheus/middleware/exporter'
use Rack::Deflater
use Prometheus::Middleware::Collector
use Prometheus::Middleware::Exporter
run Rails.application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment