Permalink
Browse files

Add prometheus metrics exporter support.

  • Loading branch information...
yukimochi committed Nov 23, 2017
1 parent 9043f45 commit 2aa9391f905640c67544a60b7f062413beace2e0
Showing with 15 additions and 0 deletions.
  1. +1 −0 Gemfile
  2. +12 −0 Gemfile.lock
  3. +2 −0 config/routes.rb
View
@@ -13,6 +13,7 @@ gem 'hamlit-rails', '~> 0.2'
gem 'pg', '~> 0.20'
gem 'pghero', '~> 1.7'
gem 'dotenv-rails', '~> 2.2'
gem 'prome', :git => "https://github.com/yukimochi/prome.git"
gem 'aws-sdk', '~> 2.10', require: false
gem 'fog-core', '~> 1.45'
View
@@ -1,3 +1,11 @@
GIT
remote: https://github.com/yukimochi/prome.git
revision: 563d1dd5ea9077db3cd864d48d897be9a472abb8
specs:
prome (0.1.0)
prometheus-client (~> 0.6.0)
rails (> 5.0.0)
GEM
remote: https://rubygems.org/
specs:
@@ -326,6 +334,8 @@ GEM
activerecord
pkg-config (1.2.8)
powerpack (0.1.1)
prometheus-client (0.6.0)
quantile (~> 0.2.0)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
@@ -335,6 +345,7 @@ GEM
puma (3.11.0)
pundit (1.1.0)
activesupport (>= 3.0.0)
quantile (0.2.0)
rack (2.0.3)
rack-attack (5.0.1)
rack
@@ -602,6 +613,7 @@ DEPENDENCIES
pg (~> 0.20)
pghero (~> 1.7)
pkg-config (~> 1.2)
prome!
pry-rails (~> 0.3)
puma (~> 3.10)
pundit (~> 1.1)
View
@@ -2,12 +2,14 @@
require 'sidekiq/web'
require 'sidekiq-scheduler/web'
require 'prome/web'
Sidekiq::Web.set :session_secret, Rails.application.secrets[:secret_key_base]
Rails.application.routes.draw do
mount LetterOpenerWeb::Engine, at: 'letter_opener' if Rails.env.development?
mount Prome::Web, at: "/metrics"
authenticate :user, lambda { |u| u.admin? } do
mount Sidekiq::Web, at: 'sidekiq', as: :sidekiq
mount PgHero::Engine, at: 'pghero', as: :pghero

0 comments on commit 2aa9391

Please sign in to comment.