Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lyda <lyda@gitlab.com>2017-05-16 17:32:07 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-02 20:45:57 +0300
commit6b9a091ceeb1c760be14f749956807bc429af46d (patch)
tree9aea662dbee6284d186dc1f29c3022d9eb25d229 /app/services
parent5bc099c2de1e05fa4dbe45b59caeced209834178 (diff)
Add trailing newline to response.
Prometheus requires a trailing newline in its response. + cleanup
Diffstat (limited to 'app/services')
-rw-r--r--app/services/prom_service.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/services/prom_service.rb b/app/services/prom_service.rb
deleted file mode 100644
index 93d52fd2c79..00000000000
--- a/app/services/prom_service.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'prometheus/client'
-require 'singleton'
-
-class PromService
- include Singleton
-
- attr_reader :login
-
- def initialize
- @prometheus = Prometheus::Client.registry
-
- @login = Prometheus::Client::Counter.new(:login, 'Login counter')
- @prometheus.register(@login)
- end
-end