lib/gitlab_exporter/git.rb in gitlab-exporter-9.1.0 vs lib/gitlab_exporter/git.rb in gitlab-exporter-10.0.0
- old
+ new
@@ -91,9 +91,13 @@
@opts = opts
@metrics = metrics
end
def probe_git # rubocop:disable Metrics/MethodLength
+ puts "[DEPRECATED] probe_git and GitProcessProber are now considered obsolete"\
+ " and will be removed in future major versions,"\
+ " please use git metrics produced by Gitaly instead"
+
counts = Hash.new(0)
Utils.pgrep("^git ").each do |pid|
process_cmd = begin
File.read("/proc/#{pid}/cmdline")