Last active
December 7, 2017 17:07
-
-
Save conr/90cbb757a37a92d91e15552b6874cc27 to your computer and use it in GitHub Desktop.
RoR Prometheus config.ru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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