diff options
author | Paco Guzman <pacoguzmanp@gmail.com> | 2016-10-10 14:21:28 +0200 |
---|---|---|
committer | Paco Guzman <pacoguzmanp@gmail.com> | 2016-10-11 15:36:05 +0200 |
commit | a4c8927007499d71a13e1a52c59a0ec36f20a6e0 (patch) | |
tree | 20b71dd0d8e0c19701cb6ad9a270ce1a0f0e18fc /lib/gitlab_config.rb | |
parent | b30d957fe2a85ee9ebb058010020e1c21d256a44 (diff) | |
download | gitlab-shell-a4c8927007499d71a13e1a52c59a0ec36f20a6e0.tar.gz |
Instrument GitLab Shell and log metrics data to a file
Diffstat (limited to 'lib/gitlab_config.rb')
-rw-r--r-- | lib/gitlab_config.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb index 781c706..f8a10cf 100644 --- a/lib/gitlab_config.rb +++ b/lib/gitlab_config.rb @@ -54,4 +54,8 @@ class GitlabConfig def git_trace_log_file @config['git_trace_log_file'] end + + def metrics_log_file + @config['metrics_log_file'] ||= File.join(ROOT_PATH, 'gitlab-shell-metrics.log') + end end |