Add telegraf to CodeOcean

This commit is contained in:
Sebastian Serth
2021-01-15 12:55:05 +01:00
parent aa5eb9413c
commit b60e78d259
3 changed files with 14 additions and 5 deletions

View File

@ -37,6 +37,7 @@ gem 'proforma', git: 'https://github.com/openHPI/proforma.git', tag: 'v0.5'
gem 'whenever', require: false gem 'whenever', require: false
gem 'rails-timeago' gem 'rails-timeago'
gem 'rails_admin' gem 'rails_admin'
gem 'telegraf'
# Error Tracing # Error Tracing
gem 'concurrent-ruby' gem 'concurrent-ruby'

View File

@ -117,7 +117,7 @@ GEM
database_cleaner (1.8.5) database_cleaner (1.8.5)
debug_inspector (1.0.0) debug_inspector (1.0.0)
diff-lcs (1.4.4) diff-lcs (1.4.4)
docile (1.3.4) docile (1.3.5)
docker-api (2.0.0) docker-api (2.0.0)
excon (>= 0.47.0) excon (>= 0.47.0)
multi_json multi_json
@ -136,7 +136,7 @@ GEM
faraday-net_http (~> 1.0) faraday-net_http (~> 1.0)
multipart-post (>= 1.2, < 3) multipart-post (>= 1.2, < 3)
ruby2_keywords ruby2_keywords
faraday-net_http (1.0.0) faraday-net_http (1.0.1)
faye-websocket (0.11.0) faye-websocket (0.11.0)
eventmachine (>= 0.12.0) eventmachine (>= 0.12.0)
websocket-driver (>= 0.5.1) websocket-driver (>= 0.5.1)
@ -163,6 +163,7 @@ GEM
ims-lti (1.2.4) ims-lti (1.2.4)
builder (>= 1.0, < 4.0) builder (>= 1.0, < 4.0)
oauth (>= 0.4.5, < 0.6) oauth (>= 0.4.5, < 0.6)
influxdb (0.8.0)
jbuilder (2.10.1) jbuilder (2.10.1)
activesupport (>= 5.0.0) activesupport (>= 5.0.0)
jquery-rails (4.4.0) jquery-rails (4.4.0)
@ -187,10 +188,10 @@ GEM
kaminari-core (1.2.1) kaminari-core (1.2.1)
kramdown (2.3.0) kramdown (2.3.0)
rexml rexml
listen (3.4.0) listen (3.4.1)
rb-fsevent (~> 0.10, >= 0.10.3) rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10) rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.8.0) loofah (2.9.0)
crass (~> 1.0.2) crass (~> 1.0.2)
nokogiri (>= 1.5.9) nokogiri (>= 1.5.9)
mail (2.7.1) mail (2.7.1)
@ -417,6 +418,8 @@ GEM
activesupport (>= 4.0) activesupport (>= 4.0)
sprockets (>= 3.0.0) sprockets (>= 3.0.0)
structured_warnings (0.4.0) structured_warnings (0.4.0)
telegraf (0.8.0)
influxdb
temple (0.8.2) temple (0.8.2)
thor (1.0.1) thor (1.0.1)
thread_safe (0.3.6) thread_safe (0.3.6)
@ -437,7 +440,7 @@ GEM
activemodel (>= 5.0) activemodel (>= 5.0)
bindex (>= 0.4.0) bindex (>= 0.4.0)
railties (>= 5.0) railties (>= 5.0)
webmock (3.11.0) webmock (3.11.1)
addressable (>= 2.3.6) addressable (>= 2.3.6)
crack (>= 0.3.2) crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0) hashdiff (>= 0.4.0, < 2.0.0)
@ -518,6 +521,7 @@ DEPENDENCIES
slim-rails slim-rails
sorcery sorcery
spring spring
telegraf
tubesock! tubesock!
turbolinks turbolinks
uglifier uglifier

View File

@ -6,6 +6,8 @@ require 'rails/all'
# you've limited to :test, :development, or :production. # you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups) Bundler.require(*Rails.groups)
require 'telegraf/rails'
module CodeOcean module CodeOcean
class Application < Rails::Application class Application < Rails::Application
# Initialize configuration defaults # Initialize configuration defaults
@ -30,5 +32,7 @@ module CodeOcean
config.assets.precompile += %w( markdown-buttons.png ) config.assets.precompile += %w( markdown-buttons.png )
config.action_cable.mount_path = '/cable' config.action_cable.mount_path = '/cable'
config.telegraf.rack.tags = {application: 'codeocean'}
end end
end end