summaryrefslogtreecommitdiff
path: root/lib/gitlab/metrics.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-12-31 17:55:10 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2015-12-31 17:55:10 +0100
commitcafc784ee1d5d0a0279077272af8ee435bb110e4 (patch)
tree91252ab1f8353857fbe452b00068481e0747b74c /lib/gitlab/metrics.rb
parentbd9f86bb8abb4759a0c72f94fb0492b1ff8619b5 (diff)
downloadgitlab-ce-cafc784ee1d5d0a0279077272af8ee435bb110e4.tar.gz
Removed tracking of hostnames for metrics
This isn't hugely useful and mostly wastes InfluxDB space. We can re-add this whenever needed (but only once we really need it).
Diffstat (limited to 'lib/gitlab/metrics.rb')
-rw-r--r--lib/gitlab/metrics.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/gitlab/metrics.rb b/lib/gitlab/metrics.rb
index c5b98a0115e..ee88ab34d6c 100644
--- a/lib/gitlab/metrics.rb
+++ b/lib/gitlab/metrics.rb
@@ -38,10 +38,6 @@ module Gitlab
@pool
end
- def self.hostname
- @hostname
- end
-
# Returns a relative path and line number based on the last application call
# frame.
def self.last_relative_application_frame
@@ -89,8 +85,6 @@ module Gitlab
value.to_s.gsub('=', '\\=')
end
- @hostname = Socket.gethostname
-
# When enabled this should be set before being used as the usual pattern
# "@foo ||= bar" is _not_ thread-safe.
if enabled?