Add telegraf to CodeOcean
This commit is contained in:
1
Gemfile
1
Gemfile
@ -37,6 +37,7 @@ gem 'proforma', git: 'https://github.com/openHPI/proforma.git', tag: 'v0.5'
|
||||
gem 'whenever', require: false
|
||||
gem 'rails-timeago'
|
||||
gem 'rails_admin'
|
||||
gem 'telegraf'
|
||||
|
||||
# Error Tracing
|
||||
gem 'concurrent-ruby'
|
||||
|
14
Gemfile.lock
14
Gemfile.lock
@ -117,7 +117,7 @@ GEM
|
||||
database_cleaner (1.8.5)
|
||||
debug_inspector (1.0.0)
|
||||
diff-lcs (1.4.4)
|
||||
docile (1.3.4)
|
||||
docile (1.3.5)
|
||||
docker-api (2.0.0)
|
||||
excon (>= 0.47.0)
|
||||
multi_json
|
||||
@ -136,7 +136,7 @@ GEM
|
||||
faraday-net_http (~> 1.0)
|
||||
multipart-post (>= 1.2, < 3)
|
||||
ruby2_keywords
|
||||
faraday-net_http (1.0.0)
|
||||
faraday-net_http (1.0.1)
|
||||
faye-websocket (0.11.0)
|
||||
eventmachine (>= 0.12.0)
|
||||
websocket-driver (>= 0.5.1)
|
||||
@ -163,6 +163,7 @@ GEM
|
||||
ims-lti (1.2.4)
|
||||
builder (>= 1.0, < 4.0)
|
||||
oauth (>= 0.4.5, < 0.6)
|
||||
influxdb (0.8.0)
|
||||
jbuilder (2.10.1)
|
||||
activesupport (>= 5.0.0)
|
||||
jquery-rails (4.4.0)
|
||||
@ -187,10 +188,10 @@ GEM
|
||||
kaminari-core (1.2.1)
|
||||
kramdown (2.3.0)
|
||||
rexml
|
||||
listen (3.4.0)
|
||||
listen (3.4.1)
|
||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
loofah (2.8.0)
|
||||
loofah (2.9.0)
|
||||
crass (~> 1.0.2)
|
||||
nokogiri (>= 1.5.9)
|
||||
mail (2.7.1)
|
||||
@ -417,6 +418,8 @@ GEM
|
||||
activesupport (>= 4.0)
|
||||
sprockets (>= 3.0.0)
|
||||
structured_warnings (0.4.0)
|
||||
telegraf (0.8.0)
|
||||
influxdb
|
||||
temple (0.8.2)
|
||||
thor (1.0.1)
|
||||
thread_safe (0.3.6)
|
||||
@ -437,7 +440,7 @@ GEM
|
||||
activemodel (>= 5.0)
|
||||
bindex (>= 0.4.0)
|
||||
railties (>= 5.0)
|
||||
webmock (3.11.0)
|
||||
webmock (3.11.1)
|
||||
addressable (>= 2.3.6)
|
||||
crack (>= 0.3.2)
|
||||
hashdiff (>= 0.4.0, < 2.0.0)
|
||||
@ -518,6 +521,7 @@ DEPENDENCIES
|
||||
slim-rails
|
||||
sorcery
|
||||
spring
|
||||
telegraf
|
||||
tubesock!
|
||||
turbolinks
|
||||
uglifier
|
||||
|
@ -6,6 +6,8 @@ require 'rails/all'
|
||||
# you've limited to :test, :development, or :production.
|
||||
Bundler.require(*Rails.groups)
|
||||
|
||||
require 'telegraf/rails'
|
||||
|
||||
module CodeOcean
|
||||
class Application < Rails::Application
|
||||
# Initialize configuration defaults
|
||||
@ -30,5 +32,7 @@ module CodeOcean
|
||||
config.assets.precompile += %w( markdown-buttons.png )
|
||||
|
||||
config.action_cable.mount_path = '/cable'
|
||||
|
||||
config.telegraf.rack.tags = {application: 'codeocean'}
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user